readInitInto() — netty Function Reference
Architecture documentation for the readInitInto() function in AdaptivePoolingAllocator.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 5b606370_5e08_94d5_b745_9c0ce73ce25a["readInitInto()"] f1cdd349_c4cb_5c01_45cf_5cb7bb37814d["Chunk"] 5b606370_5e08_94d5_b745_9c0ce73ce25a -->|defined in| f1cdd349_c4cb_5c01_45cf_5cb7bb37814d 124af09c_056b_fca2_ab69_30a58e494d89["readInitInto()"] 124af09c_056b_fca2_ab69_30a58e494d89 -->|calls| 5b606370_5e08_94d5_b745_9c0ce73ce25a a13d9512_d928_e5c6_faed_67181d87b829["readInitInto()"] a13d9512_d928_e5c6_faed_67181d87b829 -->|calls| 5b606370_5e08_94d5_b745_9c0ce73ce25a 546842cb_8674_f9d5_6751_ee84ff075ac8["AdaptiveByteBuf()"] 546842cb_8674_f9d5_6751_ee84ff075ac8 -->|calls| 5b606370_5e08_94d5_b745_9c0ce73ce25a 2845f5ec_6a60_22de_f8d4_345bc5446f42["allocateWithoutLock()"] 2845f5ec_6a60_22de_f8d4_345bc5446f42 -->|calls| 5b606370_5e08_94d5_b745_9c0ce73ce25a b550a3a7_b98a_e36b_d58d_413aa6587ed4["allocate()"] b550a3a7_b98a_e36b_d58d_413aa6587ed4 -->|calls| 5b606370_5e08_94d5_b745_9c0ce73ce25a d9980d84_8510_b798_28d8_a0722eb609cd["retain()"] 5b606370_5e08_94d5_b745_9c0ce73ce25a -->|calls| d9980d84_8510_b798_28d8_a0722eb609cd d2358321_df26_0835_b350_5f8d6d0f0433["init()"] 5b606370_5e08_94d5_b745_9c0ce73ce25a -->|calls| d2358321_df26_0835_b350_5f8d6d0f0433 59c1d0ae_e507_0c96_51fa_359fe1b6411f["release()"] 5b606370_5e08_94d5_b745_9c0ce73ce25a -->|calls| 59c1d0ae_e507_0c96_51fa_359fe1b6411f 124af09c_056b_fca2_ab69_30a58e494d89["readInitInto()"] 5b606370_5e08_94d5_b745_9c0ce73ce25a -->|calls| 124af09c_056b_fca2_ab69_30a58e494d89 style 5b606370_5e08_94d5_b745_9c0ce73ce25a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java lines 1175–1193
public boolean readInitInto(AdaptiveByteBuf buf, int size, int startingCapacity, int maxCapacity) {
int startIndex = allocatedBytes;
allocatedBytes = startIndex + startingCapacity;
Chunk chunk = this;
chunk.retain();
try {
buf.init(delegate, chunk, 0, 0, startIndex, size, startingCapacity, maxCapacity);
chunk = null;
} finally {
if (chunk != null) {
// If chunk is not null we know that buf.init(...) failed and so we need to manually release
// the chunk again as we retained it before calling buf.init(...). Beside this we also need to
// restore the old allocatedBytes value.
allocatedBytes = startIndex;
chunk.release();
}
}
return true;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does readInitInto() do?
readInitInto() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java.
Where is readInitInto() defined?
readInitInto() is defined in buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java at line 1175.
What does readInitInto() call?
readInitInto() calls 4 function(s): init, readInitInto, release, retain.
What calls readInitInto()?
readInitInto() is called by 5 function(s): AdaptiveByteBuf, allocate, allocateWithoutLock, readInitInto, readInitInto.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free