netty-incubator-buffer-api/src/test/java/io/netty/buffer/api
Chris Vest 14d55c3e0b Avoid nesting composite buffers
Motivation:
There is no reason that composite buffers should nest when composed.
Instead, when composite buffers are used to compose or extend other composite buffers, we should unwrap them and copy the references to their constituent buffers.

Modification:
Composite buffers now always unwrap and flatten themselves when they participate in composition or extension of other composite buffers.

Result:
Composite buffers are now always guaranteed* to contain a single level of non-composed leaf buffers.

*assuming no other unknown buffer-wrapping buffer type is in the mix.
2021-01-18 16:06:53 +01:00
..
benchmarks Remove thread-confinement of Buffers 2020-12-30 15:42:33 +01:00
examples Buffers always have a cleaner attached 2020-12-17 16:13:43 +01:00
BufRefTest.java Make BufHolder protected methods final if they're not meant to be overwritten 2020-12-16 17:06:22 +01:00
BufTest.java Avoid nesting composite buffers 2021-01-18 16:06:53 +01:00
Fixture.java Add support for iterating underlying buffer components 2021-01-11 16:31:36 +01:00
ScopeTest.java Add BufHolder and BufRef helper classes 2020-12-14 14:22:37 +01:00