newUnpooledChunk() — netty Function Reference
Architecture documentation for the newUnpooledChunk() function in PoolArena.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 9668a0e5_b21e_902e_bdb0_357e4fed6606["newUnpooledChunk()"] 36625935_0489_2b34_5e92_67f0dfdfa3f7["DirectArena"] 9668a0e5_b21e_902e_bdb0_357e4fed6606 -->|defined in| 36625935_0489_2b34_5e92_67f0dfdfa3f7 2a49afd8_6e42_30c2_1f59_6c345d97f22e["newUnpooledChunk()"] 9668a0e5_b21e_902e_bdb0_357e4fed6606 -->|calls| 2a49afd8_6e42_30c2_1f59_6c345d97f22e style 9668a0e5_b21e_902e_bdb0_357e4fed6606 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/PoolArena.java lines 751–764
@Override
protected PoolChunk<ByteBuffer> newUnpooledChunk(int capacity) {
if (sizeClass.directMemoryCacheAlignment == 0) {
CleanableDirectBuffer cleanableDirectBuffer = allocateDirect(capacity);
ByteBuffer memory = cleanableDirectBuffer.buffer();
return new PoolChunk<ByteBuffer>(this, cleanableDirectBuffer, memory, memory, capacity);
}
CleanableDirectBuffer cleanableDirectBuffer = allocateDirect(
capacity + sizeClass.directMemoryCacheAlignment);
final ByteBuffer base = cleanableDirectBuffer.buffer();
final ByteBuffer memory = PlatformDependent.alignDirectBuffer(base, sizeClass.directMemoryCacheAlignment);
return new PoolChunk<ByteBuffer>(this, cleanableDirectBuffer, base, memory, capacity);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does newUnpooledChunk() do?
newUnpooledChunk() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/PoolArena.java.
Where is newUnpooledChunk() defined?
newUnpooledChunk() is defined in buffer/src/main/java/io/netty/buffer/PoolArena.java at line 751.
What does newUnpooledChunk() call?
newUnpooledChunk() calls 1 function(s): newUnpooledChunk.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free