grib/src/main/java/ucar/nc2/grib/GribNumbers.java
public static int uint2(RandomAccessFile raf) throws IOException {
    int a = raf.read();
    int b = raf.read();

    return uint2(a, b);
  }
public static int uint2(RandomAccessFile raf) throws IOException {
    int a = raf.read();
    int b = raf.read();

    return uint2(a, b);
  }
Convert 2 bytes into an unsigned integer.

@param raf read from here
@return integer value
@throws IOException on read error