netty-incubator-buffer-api/src/main/java/io/netty/buffer/api/unsafe
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
..
CleanerDrop.java UnsafeBuffer implementation, based on sun.misc.Unsafe 2021-04-08 14:44:58 +02:00
package-info.java UnsafeBuffer implementation, based on sun.misc.Unsafe 2021-04-08 14:44:58 +02:00
UnsafeBuffer.java More efficient const buffer implementations 2021-05-03 15:00:49 +02:00
UnsafeMemory.java UnsafeBuffer implementation, based on sun.misc.Unsafe 2021-04-08 14:44:58 +02:00
UnsafeMemoryManager.java More efficient const buffer implementations 2021-05-03 15:00:49 +02:00
UnsafeMemoryManagers.java UnsafeBuffer implementation, based on sun.misc.Unsafe 2021-04-08 14:44:58 +02:00