protected void writeInt16(int v) { this.buffer.Add((byte)((v & 0xff00) >> 8)); this.buffer.Add((byte)(v & 0x00ff)); }