static int readUnsignedShort(final ByteArrayInputStream inputStream) {
    if (inputStream.available() < 2) {
      return -1;
    } else {
      return inputStream.read() << 8 | inputStream.read();
    }
  }
Read unsigned short int.

@param inputStream the input stream
@return the int
evm/src/main/java/org/hyperledger/besu/evm/code/EOFLayout.java