public void WriteByte2(byte value0, byte value1) { this.WriteCheckForSpace(2); this.m_Buffer[this.m_Pos] = value0; this.m_Buffer[(int) ((IntPtr) (this.m_Pos + 1))] = value1; this.m_Pos += 2; }
public void Write(short value) { m_Buffer.WriteByte2((byte)(value & 0xff), (byte)((value >> 8) & 0xff)); }