code: public static int getValue(byte[] bytes, int offset) {
      int value = (bytes[offset + 1] << BYTE_1_SHIFT) & BYTE_1_MASK;
      value += (bytes[offset] & BYTE_MASK);
      return value;
    }
docs: Helper method to get the value as a java int from two bytes starting at given array offset
  
  @param bytes the array of bytes
  @param offset the offset to start
  @return the corresponding java int value