Skip to content

Commit

Permalink
Utilities: add Half
Browse files Browse the repository at this point in the history
  • Loading branch information
meee1 committed Aug 29, 2024
1 parent 2eacbd1 commit 415e38c
Show file tree
Hide file tree
Showing 3 changed files with 1,114 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ExtLibs/Utilities/BinaryLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,9 @@ private object[] ProcessMessageObjects(byte[] message, string name, string forma
case 'Q':
return (BitConverter.ToUInt64(message, offset), 8);

case 'g':
return (HalfHelper.HalfushortToSingle(BitConverter.ToUInt16(message, offset)), 2);

case 'f':
return (BitConverter.ToSingle(message, offset), 4);

Expand Down
Loading

0 comments on commit 415e38c

Please sign in to comment.