init() — netty Function Reference
Architecture documentation for the init() function in AdaptivePoolingAllocator.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD d2358321_df26_0835_b350_5f8d6d0f0433["init()"] e9381b1a_dc06_843c_be7e_5e0eddee4a3a["AdaptiveByteBuf"] d2358321_df26_0835_b350_5f8d6d0f0433 -->|defined in| e9381b1a_dc06_843c_be7e_5e0eddee4a3a 5b606370_5e08_94d5_b745_9c0ce73ce25a["readInitInto()"] 5b606370_5e08_94d5_b745_9c0ce73ce25a -->|calls| d2358321_df26_0835_b350_5f8d6d0f0433 124af09c_056b_fca2_ab69_30a58e494d89["readInitInto()"] 124af09c_056b_fca2_ab69_30a58e494d89 -->|calls| d2358321_df26_0835_b350_5f8d6d0f0433 a13d9512_d928_e5c6_faed_67181d87b829["readInitInto()"] a13d9512_d928_e5c6_faed_67181d87b829 -->|calls| d2358321_df26_0835_b350_5f8d6d0f0433 40622caf_e835_f15f_b02b_5d52243a6fae["hasArray()"] d2358321_df26_0835_b350_5f8d6d0f0433 -->|calls| 40622caf_e835_f15f_b02b_5d52243a6fae 85622973_a705_fba7_fb36_bad3eacfa062["hasMemoryAddress()"] d2358321_df26_0835_b350_5f8d6d0f0433 -->|calls| 85622973_a705_fba7_fb36_bad3eacfa062 style d2358321_df26_0835_b350_5f8d6d0f0433 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java lines 1555–1578
void init(AbstractByteBuf unwrapped, Chunk wrapped, int readerIndex, int writerIndex,
int startIndex, int size, int capacity, int maxCapacity) {
this.startIndex = startIndex;
chunk = wrapped;
length = size;
maxFastCapacity = capacity;
maxCapacity(maxCapacity);
setIndex0(readerIndex, writerIndex);
hasArray = unwrapped.hasArray();
hasMemoryAddress = unwrapped.hasMemoryAddress();
rootParent = unwrapped;
tmpNioBuf = null;
if (PlatformDependent.isJfrEnabled() && AllocateBufferEvent.isEventEnabled()) {
AllocateBufferEvent event = new AllocateBufferEvent();
if (event.shouldCommit()) {
event.fill(this, AdaptiveByteBufAllocator.class);
event.chunkPooled = wrapped.pooled;
Magazine m = wrapped.magazine;
event.chunkThreadLocal = m != null && m.allocationLock == null;
event.commit();
}
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does init() do?
init() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java.
Where is init() defined?
init() is defined in buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java at line 1555.
What does init() call?
init() calls 2 function(s): hasArray, hasMemoryAddress.
What calls init()?
init() is called by 3 function(s): readInitInto, readInitInto, readInitInto.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free