Home / Function/ computeBufferCapacity() — netty Function Reference

computeBufferCapacity() — netty Function Reference

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

Function java Buffer Telemetry calls 1 called by 3

Entity Profile

Dependency Diagram

graph TD
  4c60941e_e0a0_70ab_d9ff_1197fdd8f8d6["computeBufferCapacity()"]
  13987726_678e_8e67_f858_dfa08f4414d6["SizeClassChunkController"]
  4c60941e_e0a0_70ab_d9ff_1197fdd8f8d6 -->|defined in| 13987726_678e_8e67_f858_dfa08f4414d6
  aa422d6c_b7e6_9e6f_2f40_6c8a846e8ae6["computeBufferCapacity()"]
  aa422d6c_b7e6_9e6f_2f40_6c8a846e8ae6 -->|calls| 4c60941e_e0a0_70ab_d9ff_1197fdd8f8d6
  2845f5ec_6a60_22de_f8d4_345bc5446f42["allocateWithoutLock()"]
  2845f5ec_6a60_22de_f8d4_345bc5446f42 -->|calls| 4c60941e_e0a0_70ab_d9ff_1197fdd8f8d6
  b550a3a7_b98a_e36b_d58d_413aa6587ed4["allocate()"]
  b550a3a7_b98a_e36b_d58d_413aa6587ed4 -->|calls| 4c60941e_e0a0_70ab_d9ff_1197fdd8f8d6
  aa422d6c_b7e6_9e6f_2f40_6c8a846e8ae6["computeBufferCapacity()"]
  4c60941e_e0a0_70ab_d9ff_1197fdd8f8d6 -->|calls| aa422d6c_b7e6_9e6f_2f40_6c8a846e8ae6
  style 4c60941e_e0a0_70ab_d9ff_1197fdd8f8d6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java lines 726–730

        @Override
        public int computeBufferCapacity(
                int requestedSize, int maxCapacity, boolean isReallocation) {
            return Math.min(segmentSize, maxCapacity);
        }

Domain

Subdomains

Frequently Asked Questions

What does computeBufferCapacity() do?
computeBufferCapacity() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java.
Where is computeBufferCapacity() defined?
computeBufferCapacity() is defined in buffer/src/main/java/io/netty/buffer/AdaptivePoolingAllocator.java at line 726.
What does computeBufferCapacity() call?
computeBufferCapacity() calls 1 function(s): computeBufferCapacity.
What calls computeBufferCapacity()?
computeBufferCapacity() is called by 3 function(s): allocate, allocateWithoutLock, computeBufferCapacity.

Analyze Your Own Codebase

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

Try Supermodel Free