allocRead() — netty Function Reference
Architecture documentation for the allocRead() function in AdaptiveRecvByteBufAllocatorTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f1b65935_c236_8693_58bc_5537b238709a["allocRead()"] 5011819c_2beb_6635_01ff_c14382c1d5a5["AdaptiveRecvByteBufAllocatorTest"] f1b65935_c236_8693_58bc_5537b238709a -->|defined in| 5011819c_2beb_6635_01ff_c14382c1d5a5 4d09daaf_19e6_d91b_b08d_0d8958843b49["lastPartialReadDoesNotRampDown()"] 4d09daaf_19e6_d91b_b08d_0d8958843b49 -->|calls| f1b65935_c236_8693_58bc_5537b238709a 2f3076f0_ee77_2120_4c99_02a0890d4925["lastPartialReadCanRampUp()"] 2f3076f0_ee77_2120_4c99_02a0890d4925 -->|calls| f1b65935_c236_8693_58bc_5537b238709a 1c4fca03_b029_5a21_08c8_7ddda96ef416["allocReadExpected()"] 1c4fca03_b029_5a21_08c8_7ddda96ef416 -->|calls| f1b65935_c236_8693_58bc_5537b238709a style f1b65935_c236_8693_58bc_5537b238709a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/AdaptiveRecvByteBufAllocatorTest.java lines 157–167
private static void allocRead(RecvByteBufAllocator.ExtendedHandle handle,
ByteBufAllocator alloc,
int expectedBufferSize,
int lastRead) {
ByteBuf buf = handle.allocate(alloc);
assertEquals(expectedBufferSize, buf.capacity());
handle.attemptedBytesRead(expectedBufferSize);
handle.lastBytesRead(lastRead);
handle.incMessagesRead(1);
buf.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does allocRead() do?
allocRead() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/AdaptiveRecvByteBufAllocatorTest.java.
Where is allocRead() defined?
allocRead() is defined in transport/src/test/java/io/netty/channel/AdaptiveRecvByteBufAllocatorTest.java at line 157.
What calls allocRead()?
allocRead() is called by 3 function(s): allocReadExpected, lastPartialReadCanRampUp, lastPartialReadDoesNotRampDown.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free