init0() — netty Function Reference
Architecture documentation for the init0() function in PooledByteBuf.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 8f9a28df_5a10_351a_dcf4_0576a7ebc853["init0()"] 49d00ede_f018_5e8f_42f9_08fdd974fe00["PooledByteBuf"] 8f9a28df_5a10_351a_dcf4_0576a7ebc853 -->|defined in| 49d00ede_f018_5e8f_42f9_08fdd974fe00 b0cb1927_72e0_dbc7_08bf_a442b6deb2c2["init()"] b0cb1927_72e0_dbc7_08bf_a442b6deb2c2 -->|calls| 8f9a28df_5a10_351a_dcf4_0576a7ebc853 1f76ef4f_13e3_eba8_3ea1_e84fbc436c5a["initUnpooled()"] 1f76ef4f_13e3_eba8_3ea1_e84fbc436c5a -->|calls| 8f9a28df_5a10_351a_dcf4_0576a7ebc853 style 8f9a28df_5a10_351a_dcf4_0576a7ebc853 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/PooledByteBuf.java lines 60–79
private void init0(PoolChunk<T> chunk, ByteBuffer nioBuffer, long handle, int offset, int length, int maxLength,
PoolThreadCache cache, boolean pooled, boolean threadLocal) {
assert handle >= 0;
assert chunk != null;
assert !PoolChunk.isSubpage(handle) ||
chunk.arena.sizeClass.size2SizeIdx(maxLength) <= chunk.arena.sizeClass.smallMaxSizeIdx:
"Allocated small sub-page handle for a buffer size that isn't \"small.\"";
chunk.incrementPinnedMemory(maxLength);
this.chunk = chunk;
memory = chunk.memory;
tmpNioBuf = nioBuffer;
allocator = chunk.arena.parent;
this.cache = cache;
this.handle = handle;
this.offset = offset;
this.length = length;
this.maxLength = maxLength;
PooledByteBufAllocator.onAllocateBuffer(this, pooled, threadLocal);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does init0() do?
init0() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/PooledByteBuf.java.
Where is init0() defined?
init0() is defined in buffer/src/main/java/io/netty/buffer/PooledByteBuf.java at line 60.
What calls init0()?
init0() is called by 2 function(s): init, initUnpooled.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free