ByteBuf.setBytes
- ByteBuf setBytes(int index, ByteBuf src)
- ByteBuf setBytes(int index, ByteBuf src, int length)
- ByteBuf setBytes(int index, ByteBuf src, int srcIndex, int length)
- ByteBuf setBytes(int index, byte[] src)
- ByteBuf setBytes(int index, byte[] src, int srcIndex, int length)
- ByteBuf setBytes(int index, ByteBuffer src)
- int setBytes(int index, InputStream inStream, int length)
Transfers the specified source buffer's data to this buffer starting at the specified absolute {@code index} until the source buffer becomes unreadable. This method is basically same with {@link #setBytes(int, ByteBuf, int, int)}, except that this method increases the {@code readerIndex} of the source buffer by the number of the transferred bytes while {@link #setBytes(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 + src.readableBytes} is greater than {@code this.capacity}