netty5/buffer/src
Norman Maurer 69070c37ba ByteBuf.readBytes(...) should use the allocator of the buffer to create the new buffer. Related to [#5093]
Motivation:

ByteBuf.readBytes(...) uses Unpooled.buffer(...) internally which will use a heap ByteBuf and also not able to make use of the allocator which may be pooled. We should better make use of the allocator.

Modifications:

Use the allocator for thenew buffer.

Result:

Take allocator into account when copy bytes.
2016-04-09 20:28:17 +02:00
..
main/java/io/netty/buffer ByteBuf.readBytes(...) should use the allocator of the buffer to create the new buffer. Related to [#5093] 2016-04-09 20:28:17 +02:00
test/java/io/netty/buffer ByteBuf.readBytes(...) should use the allocator of the buffer to create the new buffer. Related to [#5093] 2016-04-09 20:28:17 +02:00