@Override public ByteBuf setBytes(int index, byte[] src, int srcIndex, int length) { buf.setBytes(index, src, srcIndex, length); return this; }
@Override public ByteBuf setBytes(int index, byte[] src) { buf.setBytes(index, src); return this; }
@Override public ByteBuf setBytes(int index, ByteBuf src) { buf.setBytes(index, src); return this; }
@Override public ByteBuf setBytes(int index, ByteBuf src, int srcIndex, int length) { buf.setBytes(index, src, srcIndex, length); return this; }
@Override public ByteBuf setBytes(int index, byte[] src, int srcIndex, int length) { buf.setBytes(index, src, srcIndex, length); return this; }
@Override public ByteBuf setBytes(int index, ByteBuf src) { buf.setBytes(index, src); return this; }
@Override public ByteBuf setBytes(int index, ByteBuf src, int length) { buf.setBytes(index, src, length); return this; }
@Override public ByteBuf setBytes(int index, ByteBuf src, int srcIndex, int length) { buf.setBytes(index, src, srcIndex, length); return this; }
@Override public int setBytes(int index, InputStream in, int length) throws IOException { return unwrap().setBytes(index, in, length); }
@Override public ByteBuf setBytes(int index, ByteBuffer src) { unwrap().setBytes(index, src); return this; }
@Override public int setBytes(int index, ScatteringByteChannel in, int length) throws IOException { return unwrap().setBytes(index, in, length); }
@Override public int setBytes(int index, ScatteringByteChannel in, int length) throws IOException { return unwrap().setBytes(index, in, length); }
@Override public ByteBuf setBytes(int index, ByteBuffer src) { checkIndex0(index, src.remaining()); unwrap().setBytes(idx(index), src); return this; }
@Override public ByteBuf setBytes(int index, ByteBuffer src) { checkIndex0(index, src.remaining()); unwrap().setBytes(idx(index), src); return this; }
@Override public ByteBuf setBytes(int index, ByteBuf src, int srcIndex, int length) { checkIndex0(index, length); unwrap().setBytes(idx(index), src, srcIndex, length); return this; }
@Override public ByteBuf setBytes(int index, byte[] src, int srcIndex, int length) { checkIndex0(index, length); unwrap().setBytes(idx(index), src, srcIndex, length); return this; }
@Override public int setBytes(int index, InputStream in, int length) throws IOException { checkIndex0(index, length); return unwrap().setBytes(idx(index), in, length); }
@Override public int setBytes(int index, ScatteringByteChannel in, int length) throws IOException { checkIndex0(index, length); return unwrap().setBytes(idx(index), in, length); }
@Override public final ByteBuf getBytes(int index, ByteBuf dst, int dstIndex, int length) { checkDstIndex(index, length, dstIndex, dst.capacity()); if (dst.hasMemoryAddress()) { PlatformDependent.copyMemory(memory, idx(index), dst.memoryAddress() + dstIndex, length); } else if (dst.hasArray()) { getBytes(index, dst.array(), dst.arrayOffset() + dstIndex, length); } else { dst.setBytes(dstIndex, memory, idx(index), length); } return this; }
@Override public final ByteBuf getBytes(int index, ByteBuf dst, int dstIndex, int length) { checkDstIndex(index, length, dstIndex, dst.capacity()); if (dst.hasMemoryAddress()) { PlatformDependent.copyMemory(memory, idx(index), dst.memoryAddress() + dstIndex, length); } else if (dst.hasArray()) { getBytes(index, dst.array(), dst.arrayOffset() + dstIndex, length); } else { dst.setBytes(dstIndex, memory, idx(index), length); } return this; }