Home / Function/ expectedUsedMemory() — netty Function Reference

expectedUsedMemory() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  f260e36d_d79f_3098_5720_34057becb167["expectedUsedMemory()"]
  f8855572_2abf_1bf6_a32b_5cf6d1cf4947["PooledByteBufAllocatorTest"]
  f260e36d_d79f_3098_5720_34057becb167 -->|defined in| f8855572_2abf_1bf6_a32b_5cf6d1cf4947
  64ff1dc7_f2b1_46b9_58e9_cc82cd89711a["testUsedDirectMemory()"]
  64ff1dc7_f2b1_46b9_58e9_cc82cd89711a -->|calls| f260e36d_d79f_3098_5720_34057becb167
  c7ff040a_7ac5_23ee_ceec_263cfa589344["testUsedHeapMemory()"]
  c7ff040a_7ac5_23ee_ceec_263cfa589344 -->|calls| f260e36d_d79f_3098_5720_34057becb167
  style f260e36d_d79f_3098_5720_34057becb167 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/PooledByteBufAllocatorTest.java lines 69–72

    @Override
    protected long expectedUsedMemory(PooledByteBufAllocator allocator, int capacity) {
        return allocator.metric().chunkSize();
    }

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/PooledByteBufAllocatorTest.java.
Where is expectedUsedMemory() defined?
expectedUsedMemory() is defined in buffer/src/test/java/io/netty/buffer/PooledByteBufAllocatorTest.java at line 69.
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