code: public static int readUnsignedMediumInt(IoBuffer in) {
          byte[] bytes = new byte[3];
          in.get(bytes);
          int val = 0;
          val += (bytes[0] & 0xFF) * 256 * 256;
          val += (bytes[1] & 0xFF) * 256;
          val += (bytes[2] & 0xFF);
          return val;
      }
docs: Reads an unsigned Medium Int from the in buffer
  
  @param in
  Source
  @return int Integer value