예제 #1
0
 public static float ReadSingle(BitStreamReader bitStream, int bitLength) =>
 Read(bitStream, b => LittleEndianBitConverter.ToSingle(b), bitLength);
예제 #2
0
 public static double ReadDouble(BitStreamReader bitStream, int bitLength) =>
 Read(bitStream, b => LittleEndianBitConverter.ToDouble(b), bitLength);
예제 #3
0
 public static ulong ReadUInt(BitStreamReader bitStream, int bitLength) =>
 Read(bitStream, b => LittleEndianBitConverter.ToUInt64(b), bitLength);
예제 #4
0
 public static void Write(BitStreamWriter destination, double value, int bitLength) =>
 Write(destination, b => LittleEndianBitConverter.FillBytes(value, b), bitLength);
예제 #5
0
 public static long ReadInt(BitStreamReader bitStream, int bitLength) =>
 Read(bitStream, b => ExtendSignBit(LittleEndianBitConverter.ToInt64(b), bitLength), bitLength);
예제 #6
0
 public static bool ReadBoolean(BitStreamReader bitStream, int bitLength) =>
 Read(bitStream, b => LittleEndianBitConverter.ToBoolean(b), bitLength);
예제 #7
0
 public static byte[] bytes_from_crc64(ulong crc64) =>
 LittleEndianBitConverter.GetBytes(crc64);