netty5/buffer/src
Nitesh Kant 43f3956030
CompositeBuffer#split() should correctly set offsets (#11671)
__Motivation__

While computing offsets from within `CompositeBuffer#split()`, we do not consider a case when the constituents `buffer` array is empty but existing read/write offsets are non-zero. This is possible when the buffer is full.

__Modification__

Correctly set offsets even for the aforementioned case.

__Result__

Read/write offsets are correctly set while splitting composite buffer.
2021-09-10 12:33:16 -07:00
..
main CompositeBuffer#split() should correctly set offsets (#11671) 2021-09-10 12:33:16 -07:00
test/java/io/netty/buffer CompositeBuffer#split() should correctly set offsets (#11671) 2021-09-10 12:33:16 -07:00