netty-incubator-buffer-api/src/main/java/io/netty/buffer/api
Chris Vest 56bfa22d4a Align Buffer.get* bounds checks with their documented behaviour
The get* methods bounds checking accesses between 0 and the write offset, and the tests were confirming this behaviour.

This was wrong because it is not symmetric with the set* methods, which bounds check between 0 and the capacity, and does not modify the write offset.

The tests and methods have been updated so the get* methods now bounds check between 0 and the capacity.
2021-03-09 12:02:46 +01:00
..
adaptor Add working HttpSnoop example 2021-03-06 11:18:14 +01:00
memseg Align Buffer.get* bounds checks with their documented behaviour 2021-03-09 12:02:46 +01:00
AllocatorControl.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
Buffer.java Move composite buffer methods to Buffer 2021-02-15 17:46:23 +01:00
BufferAccessors.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
BufferAllocator.java Move composite buffer methods to Buffer 2021-02-15 17:46:23 +01:00
BufferHolder.java Make the incubating buffers exposable as ByteBuf 2021-03-01 10:49:09 +01:00
BufferRef.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
ByteCursor.java Update ByteCursor method names and related javadocs 2020-12-09 11:03:30 +01:00
CleanerPooledDrop.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
CompositeBuffer.java Align Buffer.get* bounds checks with their documented behaviour 2021-03-09 12:02:46 +01:00
Deref.java Introduce Deref abstraction 2021-02-11 14:26:57 +01: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 Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
MemoryManager.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +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 Make the incubating buffers exposable as ByteBuf 2021-03-01 10:49:09 +01:00
RcSupport.java Add LifecycleTracer to help debug lifecycle/ownership issues 2021-03-05 16:32:10 +01:00
ReadableComponent.java Make ReadableComponent expose ByteCursors 2021-02-27 11:04:44 +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 Introduce Deref abstraction 2021-02-11 14:26:57 +01:00
SizeClassedMemoryPool.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
Statics.java Rename Buf to Buffer and Allocator to BufferAllocator 2021-02-12 18:22:07 +01:00
TransferSend.java Introduce Deref abstraction 2021-02-11 14:26:57 +01:00
WritableComponent.java Explode ComponentProcessor into its contained interfaces 2021-02-12 18:28:29 +01:00
WritableComponentProcessor.java Explode ComponentProcessor into its contained interfaces 2021-02-12 18:28:29 +01:00