code: protected int readWord(byte[] data, int offset) {
          int low = data[offset] & 0xff;
          int high = data[offset + 1] & 0xff;
          return high << 8 | low;
      }
docs: Reads a two-byte integer from a byte array at the specified offset.
  
  @param data The source data.
  @param offset The byte offset.
  @return A two-byte integer value.