ByteBufUtil.getBytes

Create a copy of the underlying storage from {@code buf} into a byte array. The copy will start at {@link ByteBuf#readerIndex()} and copy {@link ByteBuf#readableBytes()} bytes.

Meta