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. |
||
---|---|---|
.. | ||
netty/buffer/api |