public ByteStringBuilder PutShort(int x, ByteOrder byteOrder) { if (byteOrder == ByteOrder.BigEndian) { PutByte((byte)(x >> 8)); PutByte((byte)(x >> 0)); } else { PutByte((byte)(x >> 0)); PutByte((byte)(x >> 8)); } return this; }