netty-incubator-buffer-api/src/main/java/io/netty/buffer/api
Chris Vest 51cc1e7cf4 More efficient const buffer implementations
The const buffers of the various implementations are now able to share the underlying memory.
At least until they are forced not to.
Const buffers will behave ust like normal buffers, except they start out as read-only.
When they are made writable, or sliced, then they will allocate their own independent copy of the memory.
That way, const buffers can have their contents changed, and behave just like normal buffers.
The const-ness is a pure optimisation that should not have any externally observable behaviour.
2021-05-03 15:00:49 +02:00
..
adaptor Clean up code and remove the BufferAdaptor 2021-04-27 10:00:27 +02:00
bytebuffer More efficient const buffer implementations 2021-05-03 15:00:49 +02:00
internal More efficient const buffer implementations 2021-05-03 15:00:49 +02:00
memseg More efficient const buffer implementations 2021-05-03 15:00:49 +02:00
unsafe More efficient const buffer implementations 2021-05-03 15:00:49 +02:00
AllocatorControl.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
Buffer.java First draft of const buffers and how to have buffers as constants 2021-04-30 15:35:40 +02:00
BufferAccessors.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
BufferAllocator.java More efficient const buffer implementations 2021-05-03 15:00:49 +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 Rename bifurcate to split 2021-04-29 15:34:04 +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 More efficient const buffer implementations 2021-05-03 15:00:49 +02:00
MemoryManager.java More efficient const buffer implementations 2021-05-03 15:00:49 +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 More efficient const buffer implementations 2021-05-03 15:00:49 +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