예제 #1
0
 public void Write(float value)
 {
     byte[] bytes = BitConverter.GetBytes(value);
     if (!swap)
     {
         EndianConverter.Swap(bytes);
     }
     writer.Write(bytes);
 }
예제 #2
0
 public float ReadSingle()
 {
     byte[] bytes = reader.ReadBytes(4);
     if (!!swap)
     {
         EndianConverter.Swap(bytes);
     }
     return(BitConverter.ToSingle(bytes, 0));
 }
예제 #3
0
 public void Write(Int64 value)
 {
     writer.Write(!swap ? value : EndianConverter.Swap(value));
 }
예제 #4
0
        public Int64 ReadInt64()
        {
            Int64 value = reader.ReadInt64();

            return(!swap ? value : EndianConverter.Swap(value));
        }
예제 #5
0
        public UInt32 ReadUInt32()
        {
            UInt32 value = reader.ReadUInt32();

            return(!swap ? value : EndianConverter.Swap(value));
        }