[#1262] Respect adjustment when using SlicedByteBuf.nioBuffers()
This commit is contained in:
parent
4746e74124
commit
3b8673733e
@ -265,6 +265,6 @@ public class SlicedByteBuf extends AbstractDerivedByteBuf {
|
||||
@Override
|
||||
public ByteBuffer[] nioBuffers(int index, int length) {
|
||||
checkIndex(index, length);
|
||||
return buffer.nioBuffers(index, length);
|
||||
return buffer.nioBuffers(index + adjustment, length);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user