code: static int getUnsignedInt(ByteBuf buf, int offset) {
          return (buf.getByte(offset)     & 0x7F) << 24 |
                 (buf.getByte(offset + 1) & 0xFF) << 16 |
                 (buf.getByte(offset + 2) & 0xFF) <<  8 |
                  buf.getByte(offset + 3) & 0xFF;
      }
docs: Reads a big-endian (31-bit) integer from the buffer.