Home / Function/ PooledByteBufAllocator() — netty Function Reference

PooledByteBufAllocator() — netty Function Reference

Architecture documentation for the PooledByteBufAllocator() function in AlignedPooledByteBufAllocatorTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  98e9fd03_54b3_2543_c93d_fcc6739e25e3["PooledByteBufAllocator()"]
  c9134dc8_fd93_c39d_23b0_5a7607e27734["AlignedPooledByteBufAllocatorTest"]
  98e9fd03_54b3_2543_c93d_fcc6739e25e3 -->|defined in| c9134dc8_fd93_c39d_23b0_5a7607e27734
  d83dc266_1c59_cff1_889e_aa5fd4449bbf["testCorrectElementSize()"]
  d83dc266_1c59_cff1_889e_aa5fd4449bbf -->|calls| 98e9fd03_54b3_2543_c93d_fcc6739e25e3
  894fa3c1_f240_ab16_8e00_0f1104ec04a9["testDirectSubpageReleaseLock()"]
  894fa3c1_f240_ab16_8e00_0f1104ec04a9 -->|calls| 98e9fd03_54b3_2543_c93d_fcc6739e25e3
  style 98e9fd03_54b3_2543_c93d_fcc6739e25e3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/AlignedPooledByteBufAllocatorTest.java lines 28–42

    @Override
    protected PooledByteBufAllocator newAllocator(boolean preferDirect) {
        assumeTrue(PooledByteBufAllocator.isDirectMemoryCacheAlignmentSupported());
        int directMemoryCacheAlignment = 1;
        return new PooledByteBufAllocator(
                preferDirect,
                PooledByteBufAllocator.defaultNumHeapArena(),
                PooledByteBufAllocator.defaultNumDirectArena(),
                PooledByteBufAllocator.defaultPageSize(),
                11,
                PooledByteBufAllocator.defaultSmallCacheSize(),
                64,
                PooledByteBufAllocator.defaultUseCacheForAllThreads(),
                directMemoryCacheAlignment);
    }

Domain

Subdomains

Frequently Asked Questions

What does PooledByteBufAllocator() do?
PooledByteBufAllocator() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/AlignedPooledByteBufAllocatorTest.java.
Where is PooledByteBufAllocator() defined?
PooledByteBufAllocator() is defined in buffer/src/test/java/io/netty/buffer/AlignedPooledByteBufAllocatorTest.java at line 28.
What calls PooledByteBufAllocator()?
PooledByteBufAllocator() is called by 2 function(s): testCorrectElementSize, testDirectSubpageReleaseLock.

Analyze Your Own Codebase

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

Try Supermodel Free