Home / Function/ sizeIndexOf() — netty Function Reference

sizeIndexOf() — netty Function Reference

Architecture documentation for the sizeIndexOf() function in AdaptivePoolingAllocator.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  cea02977_b597_4dc0_ec47_603690c1db55["sizeIndexOf()"]
  9bc56cad_0c0c_4043_82ba_cb42dfea6004["AdaptivePoolingAllocator"]
  cea02977_b597_4dc0_ec47_603690c1db55 -->|defined in| 9bc56cad_0c0c_4043_82ba_cb42dfea6004
  2e882b7f_81d8_3093_0746_4b18e0474137["sizeClassIndexOf()"]
  2e882b7f_81d8_3093_0746_4b18e0474137 -->|calls| cea02977_b597_4dc0_ec47_603690c1db55
  style cea02977_b597_4dc0_ec47_603690c1db55 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java lines 279–282

    private static int sizeIndexOf(final int size) {
        // this is aligning the size to the next multiple of 32 and dividing by 32 to get the size index.
        return size + 31 >> 5;
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does sizeIndexOf() do?
sizeIndexOf() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java.
Where is sizeIndexOf() defined?
sizeIndexOf() is defined in buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java at line 279.
What calls sizeIndexOf()?
sizeIndexOf() is called by 1 function(s): sizeClassIndexOf.

Analyze Your Own Codebase

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

Try Supermodel Free