code: public static int readUnsignedMediumInt(IoBuffer in) {
          final byte a = in.get();
          final byte b = in.get();
          final byte c = in.get();
          int val = 0;
          val += (a & 0xff) << 16;
          val += (b & 0xff) << 8;
          val += (c & 0xff);
          return val;
      }
docs: Read unsigned 24 bit integer.
  
  @param in input
  @return unsigned int