public static void WriteBig(this BinaryWriter bw, float v) { byte[] d = BitConverter.GetBytes(v); Endian.ReverseBytes(ref d); bw.Write(d); }
public static void WriteBig(this BinaryWriter bw, int v) { bw.Write(Endian.ConvertInt32(v)); }
public static void WriteBig(this BinaryWriter bw, ushort v) { bw.Write(Endian.ConvertUInt16(v)); }