public static void WriteBE(this byte[] bytes, int offset, Double value) { BitConverter2.GetBytes(value, bytes, offset); if (!IsBE) { Array.Reverse(bytes, offset, sizeof(Double)); } }
public static void WriteLE(this byte[] bytes, int offset, UInt64 value) { BitConverter2.GetBytes(value, bytes, offset); if (!IsLE) { Array.Reverse(bytes, offset, sizeof(UInt64)); } }
public virtual void WriteUInt24(uint value) { BitConverter2.GetBytes(value, m_buffer2, 0); if (!m_nativeEndian) { Array.Reverse(m_buffer2, 0, 4); } BaseStream.Write(m_buffer2, m_bigEndian ? 1 : 0, 3); }
public override void Write(Int32 value) { BitConverter2.GetBytes(value, m_buffer2, 0); if (!m_nativeEndian) Array.Reverse(m_buffer2, 0, sizeof(Int32)); }