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