Exemplo n.º 1
0
 public static void WriteBE(this byte[] bytes, int offset, Double value)
 {
     BitConverter2.GetBytes(value, bytes, offset);
     if (!IsBE)
     {
         Array.Reverse(bytes, offset, sizeof(Double));
     }
 }
Exemplo n.º 2
0
 public static void WriteLE(this byte[] bytes, int offset, UInt64 value)
 {
     BitConverter2.GetBytes(value, bytes, offset);
     if (!IsLE)
     {
         Array.Reverse(bytes, offset, sizeof(UInt64));
     }
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 public override void Write(Int32 value)
 {
     BitConverter2.GetBytes(value, m_buffer2, 0);
     if (!m_nativeEndian)
         Array.Reverse(m_buffer2, 0, sizeof(Int32)); }