netty5/buffer
Nick Hill f673ba36a0 Don't zero non-readable buffer regions when capacity is decreased (#9427)
Motivation

region is preserved when capacity is increased, not just the readable
part. The behaviour is still different however when the capacity is
_decreased_ - data outside the currently-readable region is zeroed.

Modifications

Update ByteBuf capacity(int) implementations to also copy the whole
buffer region when the new capacity is less than the current capacity.

Result

Consistent behaviour of ByteBuf#capacity(int) regardless of whether the
new capacity is greater than or less than the current capacity.
2019-08-16 08:28:33 +02:00
..
src Don't zero non-readable buffer regions when capacity is decreased (#9427) 2019-08-16 08:28:33 +02:00
pom.xml Update version number to start working on Netty 5 2018-11-20 15:49:57 +01:00