expandBuffer() — netty Function Reference
Architecture documentation for the expandBuffer() function in ByteBufAllocateAndGrowBenchmark.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 0682dd35_0259_0d96_91dc_bd05b7e40d1b["expandBuffer()"] fc3b0965_3296_b97f_be0e_37f95bff98b5["ByteBufAllocateAndGrowBenchmark"] 0682dd35_0259_0d96_91dc_bd05b7e40d1b -->|defined in| fc3b0965_3296_b97f_be0e_37f95bff98b5 af6e2cdc_c78e_15ef_a256_bad00644c759["pooledDirectAllocAndFree()"] af6e2cdc_c78e_15ef_a256_bad00644c759 -->|calls| 0682dd35_0259_0d96_91dc_bd05b7e40d1b 6f6a8961_fab9_3259_48b7_ba057361aea0["adaptiveDirectAllocAndFree()"] 6f6a8961_fab9_3259_48b7_ba057361aea0 -->|calls| 0682dd35_0259_0d96_91dc_bd05b7e40d1b eb99c839_e151_4c32_1742_7f6391dfee24["record()"] 0682dd35_0259_0d96_91dc_bd05b7e40d1b -->|calls| eb99c839_e151_4c32_1742_7f6391dfee24 style 0682dd35_0259_0d96_91dc_bd05b7e40d1b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
microbench/src/main/java/io/netty/microbench/buffer/ByteBufAllocateAndGrowBenchmark.java lines 96–102
private void expandBuffer(ByteBuf buf, BufStats stats) {
stats.record(buf);
while (buf.capacity() < size) {
buf.capacity(2 * buf.capacity());
stats.record(buf);
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does expandBuffer() do?
expandBuffer() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/buffer/ByteBufAllocateAndGrowBenchmark.java.
Where is expandBuffer() defined?
expandBuffer() is defined in microbench/src/main/java/io/netty/microbench/buffer/ByteBufAllocateAndGrowBenchmark.java at line 96.
What does expandBuffer() call?
expandBuffer() calls 1 function(s): record.
What calls expandBuffer()?
expandBuffer() is called by 2 function(s): adaptiveDirectAllocAndFree, pooledDirectAllocAndFree.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free