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} until the destination becomes non-writable. This method is basically same with {@link #getBytes(int, ByteBuf, int, int)}, except that this method increases the {@code writerIndex} of the destination by the number of the transferred bytes while {@link #getBytes(int, ByteBuf, int, int)} does not. This method does not modify {@code readerIndex} or {@code writerIndex} of the source buffer (i.e. {@code this}).
@throws IndexOutOfBoundsException if the specified {@code index} is less than {@code 0} or if {@code index + dst.writableBytes} is greater than {@code this.capacity}