code: static int getUnsignedShort(ByteBuf buf, int offset) {
          return (buf.getByte(offset)     & 0xFF) << 8 |
                  buf.getByte(offset + 1) & 0xFF;
      }
docs: Reads a big-endian unsigned short integer from the buffer.