code: public final int getInt24() {
          if (position + 2 >= origin + limit) throw new IllegalArgumentException("limit excceed: "
                                                                                 + (position - origin + 2));
  
          byte[] buf = buffer;
          return (0xff & buf[position++]) | ((0xff & buf[position++]) << 8) | ((buf[position++]) << 16);
      }
docs: Return next 24-bit signed int from buffer. (little-endian)
  
  @see mysql-5.1.60/include/my_global.h - sint3korr