netty-incubator-buffer-api/src/main/java/io/netty/buffer/api
Chris Vest 556d0acc89 Add splitComponentsFloor and splitComponentsCeil
These methods make it possible to accurately split composite buffers at component boundaries, either by rounding the offset down or up to the nearest component boundary, respectively.

Composite buffers already support the split method, but it is hard for client code to predict precisely where component boundaries are placed inside composite buffers.
When split is used with an offset that does not land exactly on a component boundary, then the internal component that the offset lands on will also be split.
This may make it harder to precisely reason about memory life cycles and reuse.
2021-05-07 10:41:46 +02:00
..
adaptor Clean up code and remove the BufferAdaptor 2021-04-27 10:00:27 +02:00
bytebuffer Make the buffer read-only state irreversible 2021-05-05 12:30:52 +02:00
internal More efficient const buffer implementations 2021-05-03 15:00:49 +02:00
memseg Make the buffer read-only state irreversible 2021-05-05 12:30:52 +02:00
unsafe Make the buffer read-only state irreversible 2021-05-05 12:30:52 +02:00
AllocatorControl.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
Buffer.java Add splitComponentsFloor and splitComponentsCeil 2021-05-07 10:41:46 +02:00
BufferAccessors.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
BufferAllocator.java Clarify what it means to close a BufferAllocator 2021-05-05 16:09:11 +02:00
BufferHolder.java Add a ByteBuffer based implementation of Buffer 2021-03-18 15:18:22 +01:00
BufferRef.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
ByteCursor.java Fix more test failures for UnsafeBuffer 2021-04-08 14:44:58 +02:00
CleanerPooledDrop.java Add a ByteBuffer based implementation of Buffer 2021-03-18 15:18:22 +01:00
CompositeBuffer.java Add splitComponentsFloor and splitComponentsCeil 2021-05-07 10:41:46 +02:00
Drop.java Address review comments on bifurcate PR 2020-12-10 12:51:18 +01:00
LifecycleTracer.java Make LifecycleTracer thread-safe 2021-03-09 11:57:49 +01:00
ManagedBufferAllocator.java Make the buffer read-only state irreversible 2021-05-05 12:30:52 +02:00
MemoryManager.java Make the buffer read-only state irreversible 2021-05-05 12:30:52 +02:00
MemoryManagers.java Add a ByteBuffer based implementation of Buffer 2021-03-18 15:18:22 +01:00
MemoryManagersOverride.java Add a ByteBuffer based implementation of Buffer 2021-03-18 15:18:22 +01:00
Owned.java Rename the 'b2' package to 'api' 2020-11-17 15:40:13 +01:00
package-info.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
Rc.java Remove Deref 2021-04-27 16:11:30 +02:00
RcSupport.java Fix failing ByteBufAdaptorTests and increase adaptor compatibility 2021-03-16 12:11:29 +01:00
ReadableComponent.java Add a ByteBuffer based implementation of Buffer 2021-03-18 15:18:22 +01:00
ReadableComponentProcessor.java Explode ComponentProcessor into its contained interfaces 2021-02-12 18:28:29 +01:00
ResourceDisposeFailedException.java Rename the 'b2' package to 'api' 2020-11-17 15:40:13 +01:00
Scope.java Add BufHolder and BufRef helper classes 2020-12-14 14:22:37 +01:00
Send.java Remove Deref 2021-04-27 16:11:30 +02:00
SizeClassedMemoryPool.java Make the buffer read-only state irreversible 2021-05-05 12:30:52 +02:00
TransferSend.java Remove Deref 2021-04-27 16:11:30 +02:00
WritableComponent.java Add a ByteBuffer based implementation of Buffer 2021-03-18 15:18:22 +01:00
WritableComponentProcessor.java Explode ComponentProcessor into its contained interfaces 2021-02-12 18:28:29 +01:00