public static float ToSingle(byte[] value, int startIndex)
        {
            var int32FromBytes = BytesSwapper.Swap(BitConverter.ToInt32(value, startIndex));

            return(new Int32SingleUnion(int32FromBytes).AsSingle);
        }
Esempio n. 2
0
 public override uint ReadUInt32()
 {
     return(BytesSwapper.Swap(base.ReadUInt32()));
 }
Esempio n. 3
0
 public override ulong ReadUInt64()
 {
     return(BytesSwapper.Swap(base.ReadUInt64()));
 }
Esempio n. 4
0
 public override short ReadInt16()
 {
     return(BytesSwapper.Swap(base.ReadInt16()));
 }