Home / Function/ expectedUsedMemory() — netty Function Reference

expectedUsedMemory() — netty Function Reference

Architecture documentation for the expectedUsedMemory() function in AdaptiveByteBufAllocatorTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  efbe94da_0929_2626_e102_bdd8e91c281e["expectedUsedMemory()"]
  b5780ec9_74a4_594b_4225_0099765d71e7["AdaptiveByteBufAllocatorTest"]
  efbe94da_0929_2626_e102_bdd8e91c281e -->|defined in| b5780ec9_74a4_594b_4225_0099765d71e7
  1267f842_fd0c_2eb6_4ff1_b6b119a959e5["testUsedDirectMemory()"]
  1267f842_fd0c_2eb6_4ff1_b6b119a959e5 -->|calls| efbe94da_0929_2626_e102_bdd8e91c281e
  a091f3e6_8ded_0778_c8db_a8ebbf1d76e9["testUsedHeapMemory()"]
  a091f3e6_8ded_0778_c8db_a8ebbf1d76e9 -->|calls| efbe94da_0929_2626_e102_bdd8e91c281e
  style efbe94da_0929_2626_e102_bdd8e91c281e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/AdaptiveByteBufAllocatorTest.java lines 63–66

    @Override
    protected long expectedUsedMemory(AdaptiveByteBufAllocator allocator, int capacity) {
        return 128 * 1024; // Min chunk size
    }

Domain

Subdomains

Frequently Asked Questions

What does expectedUsedMemory() do?
expectedUsedMemory() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/AdaptiveByteBufAllocatorTest.java.
Where is expectedUsedMemory() defined?
expectedUsedMemory() is defined in buffer/src/test/java/io/netty/buffer/AdaptiveByteBufAllocatorTest.java at line 63.
What calls expectedUsedMemory()?
expectedUsedMemory() is called by 2 function(s): testUsedDirectMemory, testUsedHeapMemory.

Analyze Your Own Codebase

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

Try Supermodel Free