testCorrectElementSize() — netty Function Reference
Architecture documentation for the testCorrectElementSize() function in AlignedPooledByteBufAllocatorTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD d83dc266_1c59_cff1_889e_aa5fd4449bbf["testCorrectElementSize()"] c9134dc8_fd93_c39d_23b0_5a7607e27734["AlignedPooledByteBufAllocatorTest"] d83dc266_1c59_cff1_889e_aa5fd4449bbf -->|defined in| c9134dc8_fd93_c39d_23b0_5a7607e27734 98e9fd03_54b3_2543_c93d_fcc6739e25e3["PooledByteBufAllocator()"] d83dc266_1c59_cff1_889e_aa5fd4449bbf -->|calls| 98e9fd03_54b3_2543_c93d_fcc6739e25e3 style d83dc266_1c59_cff1_889e_aa5fd4449bbf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/AlignedPooledByteBufAllocatorTest.java lines 45–71
@Test
public void testCorrectElementSize() {
assumeTrue(PooledByteBufAllocator.isDirectMemoryCacheAlignmentSupported());
ByteBufAllocator allocator = new PooledByteBufAllocator(
true,
PooledByteBufAllocator.defaultNumHeapArena(),
PooledByteBufAllocator.defaultNumDirectArena(),
PooledByteBufAllocator.defaultPageSize(),
11,
PooledByteBufAllocator.defaultSmallCacheSize(),
64,
PooledByteBufAllocator.defaultUseCacheForAllThreads(),
64);
ByteBuf a = allocator.directBuffer(0, 16384);
ByteBuf b = allocator.directBuffer(0, 16384);
a.capacity(16);
assertEquals(16, a.capacity());
b.capacity(16);
assertEquals(16, b.capacity());
a.capacity(17);
assertEquals(17, a.capacity());
b.capacity(18);
assertEquals(18, b.capacity());
assertTrue(a.release());
assertTrue(b.release());
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testCorrectElementSize() do?
testCorrectElementSize() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/AlignedPooledByteBufAllocatorTest.java.
Where is testCorrectElementSize() defined?
testCorrectElementSize() is defined in buffer/src/test/java/io/netty/buffer/AlignedPooledByteBufAllocatorTest.java at line 45.
What does testCorrectElementSize() call?
testCorrectElementSize() calls 1 function(s): PooledByteBufAllocator.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free