ByteBuf.getBytes
- ByteBuf getBytes(int index, ByteBuf dst)
- ByteBuf getBytes(int index, ByteBuf dst, int length)
- ByteBuf getBytes(int index, ByteBuf dst, int dstIndex, int length)
- ByteBuf getBytes(int index, byte[] dst)
- ByteBuf getBytes(int index, byte[] dst, int dstIndex, int length)
- ByteBuf getBytes(int index, ByteBuffer dst)
- ByteBuf getBytes(int index, OutputStream outStream, int length)
Transfers this buffer's data to the specified destination starting at the specified absolute {@code index}. This method does not modify {@code readerIndex} or {@code writerIndex} of both the source (i.e. {@code this}) and the destination.
@param dstIndex the first index of the destination @param length the number of bytes to transfer
@throws IndexOutOfBoundsException if the specified {@code index} is less than {@code 0}, if the specified {@code dstIndex} is less than {@code 0}, if {@code index + length} is greater than {@code this.capacity}, or if {@code dstIndex + length} is greater than {@code dst.capacity}