PooledAlignedBigEndianDirectByteBufTest Class — netty Architecture
Architecture documentation for the PooledAlignedBigEndianDirectByteBufTest class in PooledAlignedBigEndianDirectByteBufTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD ea564109_399d_7bca_cb8f_57519fcd0988["PooledAlignedBigEndianDirectByteBufTest"] 5769d66a_f90c_166d_43c7_fad9c4b931d4["PooledAlignedBigEndianDirectByteBufTest.java"] ea564109_399d_7bca_cb8f_57519fcd0988 -->|defined in| 5769d66a_f90c_166d_43c7_fad9c4b931d4 58f414ab_28b0_ad1b_0734_c933857aab0c["setUpAllocator()"] ea564109_399d_7bca_cb8f_57519fcd0988 -->|method| 58f414ab_28b0_ad1b_0734_c933857aab0c 348665dc_866f_2724_9bde_653fd4d32d59["releaseAllocator()"] ea564109_399d_7bca_cb8f_57519fcd0988 -->|method| 348665dc_866f_2724_9bde_653fd4d32d59 6a88fab7_a71b_9cfc_9c1c_e2879f6d0b94["ByteBuf()"] ea564109_399d_7bca_cb8f_57519fcd0988 -->|method| 6a88fab7_a71b_9cfc_9c1c_e2879f6d0b94
Relationship Graph
Source Code
buffer/src/test/java/io/netty/buffer/PooledAlignedBigEndianDirectByteBufTest.java lines 26–56
public class PooledAlignedBigEndianDirectByteBufTest extends PooledBigEndianDirectByteBufTest {
private static final int directMemoryCacheAlignment = 1;
private static PooledByteBufAllocator allocator;
@BeforeAll
public static void setUpAllocator() {
assumeTrue(PooledByteBufAllocator.isDirectMemoryCacheAlignmentSupported());
allocator = new PooledByteBufAllocator(
true,
PooledByteBufAllocator.defaultNumHeapArena(),
PooledByteBufAllocator.defaultNumDirectArena(),
PooledByteBufAllocator.defaultPageSize(),
11,
PooledByteBufAllocator.defaultSmallCacheSize(),
64,
PooledByteBufAllocator.defaultUseCacheForAllThreads(),
directMemoryCacheAlignment);
}
@AfterAll
public static void releaseAllocator() {
allocator = null;
}
@Override
protected ByteBuf alloc(int length, int maxCapacity) {
ByteBuf buffer = allocator.directBuffer(length, maxCapacity);
assertSame(ByteOrder.BIG_ENDIAN, buffer.order());
return buffer;
}
}
Source
Frequently Asked Questions
What is the PooledAlignedBigEndianDirectByteBufTest class?
PooledAlignedBigEndianDirectByteBufTest is a class in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/PooledAlignedBigEndianDirectByteBufTest.java.
Where is PooledAlignedBigEndianDirectByteBufTest defined?
PooledAlignedBigEndianDirectByteBufTest is defined in buffer/src/test/java/io/netty/buffer/PooledAlignedBigEndianDirectByteBufTest.java at line 26.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free