netty-incubator-buffer-api/src/test/java/io/netty/buffer/api
Chris Vest 6175f8f4c5 Make ReadableComponent expose ByteCursors
Motivation:
Another way to process the readable data in a buffer.
This might be faster for composite buffers, since their byte cursors are a bit slower than the MemSegBuffer due to the indirections and more complicated logic.

Modification:
ReadableComponent now have openCursor method.

Note that we *don't* add an openReverseCursor method on ReadableComponent.
The reason is that forEachReadable iterates the components in the forward direction, and it's really confusing to then iterate the bytes in a backwards direction.
Working with both directions at the same time is very error prone.

Result:
It is now possible to process readable components with byte cursors.
2021-02-27 11:04:44 +01:00
..
benchmarks Move composite buffer methods to Buffer 2021-02-15 17:46:23 +01:00
examples Move composite buffer methods to Buffer 2021-02-15 17:46:23 +01:00
BufferRefTest.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
BufferTest.java Make ReadableComponent expose ByteCursors 2021-02-27 11:04:44 +01:00
Fixture.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
ScopeTest.java Add BufHolder and BufRef helper classes 2020-12-14 14:22:37 +01:00