protected int ReadShort() { // read 16-bit value, LSB first return inp.ReadByte() | (inp.ReadByte() << 8); }