ByteBuf.readBytes

Transfers this buffer's data to the specified destination starting at the current {@code readerIndex} until the destination's position reaches its limit, and increases the {@code readerIndex} by the number of the transferred bytes.

@throws IndexOutOfBoundsException if {@code dst.remaining()} is greater than {@code this.readableBytes}

Meta