Beispiel #1
0
 public static void AppendHalf(this byte[] buffer, float value, ref int bitposition)
 {
     buffer.Append(HalfUtilities.Pack(value), ref bitposition, 16);
 }
Beispiel #2
0
 public static float ReadHalf(this byte[] buffer, ref int bitposition)
 {
     return(HalfUtilities.Unpack((ushort)buffer.Read(ref bitposition, 16)));
 }