Home / Function/ setUpAllocator() — netty Function Reference

setUpAllocator() — netty Function Reference

Architecture documentation for the setUpAllocator() function in PooledAlignedBigEndianDirectByteBufTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  58f414ab_28b0_ad1b_0734_c933857aab0c["setUpAllocator()"]
  ea564109_399d_7bca_cb8f_57519fcd0988["PooledAlignedBigEndianDirectByteBufTest"]
  58f414ab_28b0_ad1b_0734_c933857aab0c -->|defined in| ea564109_399d_7bca_cb8f_57519fcd0988
  style 58f414ab_28b0_ad1b_0734_c933857aab0c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/PooledAlignedBigEndianDirectByteBufTest.java lines 30–43

    @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);
    }

Domain

Subdomains

Frequently Asked Questions

What does setUpAllocator() do?
setUpAllocator() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/PooledAlignedBigEndianDirectByteBufTest.java.
Where is setUpAllocator() defined?
setUpAllocator() is defined in buffer/src/test/java/io/netty/buffer/PooledAlignedBigEndianDirectByteBufTest.java at line 30.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free