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

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