code: public static byte[] readRawBytes(ByteBuf cb)
      {
          byte[] bytes = new byte[cb.readableBytes()];
          cb.readBytes(bytes);
          return bytes;
      }
docs: /*
  Reads *all* readable bytes from {@code cb} and return them.