ByteBuf() — netty Function Reference
Architecture documentation for the ByteBuf() function in PooledByteBufAllocator.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD fac02def_c33a_d305_e617_e397f5a9d596["ByteBuf()"] f5ea31b4_1e4c_94f0_32cf_d4ab3e538b0a["PooledByteBufAllocator"] fac02def_c33a_d305_e617_e397f5a9d596 -->|defined in| f5ea31b4_1e4c_94f0_32cf_d4ab3e538b0a 04791b6b_5f8d_341e_5556_ae24a98414e4["onAllocateBuffer()"] fac02def_c33a_d305_e617_e397f5a9d596 -->|calls| 04791b6b_5f8d_341e_5556_ae24a98414e4 style fac02def_c33a_d305_e617_e397f5a9d596 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/PooledByteBufAllocator.java lines 379–394
@Override
protected ByteBuf newHeapBuffer(int initialCapacity, int maxCapacity) {
PoolThreadCache cache = threadCache.get();
PoolArena<byte[]> heapArena = cache.heapArena;
final AbstractByteBuf buf;
if (heapArena != null) {
buf = heapArena.allocate(cache, initialCapacity, maxCapacity);
} else {
buf = PlatformDependent.hasUnsafe() ?
new UnpooledUnsafeHeapByteBuf(this, initialCapacity, maxCapacity) :
new UnpooledHeapByteBuf(this, initialCapacity, maxCapacity);
onAllocateBuffer(buf, false, false);
}
return toLeakAwareBuffer(buf);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does ByteBuf() do?
ByteBuf() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/PooledByteBufAllocator.java.
Where is ByteBuf() defined?
ByteBuf() is defined in buffer/src/main/java/io/netty/buffer/PooledByteBufAllocator.java at line 379.
What does ByteBuf() call?
ByteBuf() calls 1 function(s): onAllocateBuffer.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free