Home / Function/ getNextSizeIndex() — netty Function Reference

getNextSizeIndex() — netty Function Reference

Architecture documentation for the getNextSizeIndex() function in ByteBufAllocatorAllocPatternBenchmark.java from the netty codebase.

Function java Buffer Search called by 2

Entity Profile

Dependency Diagram

graph TD
  eb3b24cc_32a0_7289_8880_2dc69bc0b4b8["getNextSizeIndex()"]
  2b9d2c55_b3ab_2241_3c94_2c28d1742399["AllocationPatternState"]
  eb3b24cc_32a0_7289_8880_2dc69bc0b4b8 -->|defined in| 2b9d2c55_b3ab_2241_3c94_2c28d1742399
  fe84fc40_3a97_c97a_73cb_2217baa430ed["performDirectAllocation()"]
  fe84fc40_3a97_c97a_73cb_2217baa430ed -->|calls| eb3b24cc_32a0_7289_8880_2dc69bc0b4b8
  26bf866c_3b1b_fbfe_7ea6_9d3c0dcb9920["performHeapAllocation()"]
  26bf866c_3b1b_fbfe_7ea6_9d3c0dcb9920 -->|calls| eb3b24cc_32a0_7289_8880_2dc69bc0b4b8
  style eb3b24cc_32a0_7289_8880_2dc69bc0b4b8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbench/buffer/ByteBufAllocatorAllocPatternBenchmark.java lines 111–115

        private int getNextSizeIndex() {
            int index = nextSizeIndex;
            nextSizeIndex = (nextSizeIndex + 1) & (sizes.length - 1);
            return index;
        }

Domain

Subdomains

Frequently Asked Questions

What does getNextSizeIndex() do?
getNextSizeIndex() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/buffer/ByteBufAllocatorAllocPatternBenchmark.java.
Where is getNextSizeIndex() defined?
getNextSizeIndex() is defined in microbench/src/main/java/io/netty/microbench/buffer/ByteBufAllocatorAllocPatternBenchmark.java at line 111.
What calls getNextSizeIndex()?
getNextSizeIndex() is called by 2 function(s): performDirectAllocation, performHeapAllocation.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free