Go to file
Chris Vest 9c54aa43b4 Add Buf.ensureWritable
Motivation:
Having buffers that are able to expand to accommodate more data on demand is a great convenience.

Modification:
Composite and MemSeg buffers are now able to mutate their backing storage, to increase their capacity.
This required some tricky integration with allocators via AllocatorControl.
Basically, it's now possible to allocate memory that is NOT bound by any life time, so that it can be attached to the life time that already exists for the buffer being expanded.

Result:
Buffers can now be expanded via Buf.ensureWritable.
2020-11-17 15:26:58 +01:00
buffer/src Add Buf.ensureWritable 2020-11-17 15:26:58 +01:00
common/src/main/java/io/netty/util Introduce ByteIterator, and Buf.iterate 2020-11-17 15:26:57 +01:00
microbench/src/main/java/io/netty/buffer Introduce ByteIterator, and Buf.iterate 2020-11-17 15:26:57 +01:00
.gitignore Prepare incubator repo for new buffer API 2020-11-17 14:56:28 +01:00
pom.xml Pom updates 2020-11-17 15:26:57 +01:00
README.md Prepare incubator repo for new buffer API 2020-11-17 14:56:28 +01:00

Netty Incubator Buffer API

This repository is incubating a new buffer API proposed for Netty 5.