Home / Function/ allocateArray() — netty Function Reference

allocateArray() — netty Function Reference

Architecture documentation for the allocateArray() function in UnpooledByteBufAllocator.java from the netty codebase.

Function java Buffer Telemetry calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  0a8eb85d_6ed9_1d4a_f4ce_a7b196f65500["allocateArray()"]
  2b7b6984_3343_6911_d364_6005a304ba48["InstrumentedUnpooledHeapByteBuf"]
  0a8eb85d_6ed9_1d4a_f4ce_a7b196f65500 -->|defined in| 2b7b6984_3343_6911_d364_6005a304ba48
  7fe91473_e539_4684_c2bb_100b00a72d23["allocateArray()"]
  7fe91473_e539_4684_c2bb_100b00a72d23 -->|calls| 0a8eb85d_6ed9_1d4a_f4ce_a7b196f65500
  7fe91473_e539_4684_c2bb_100b00a72d23["allocateArray()"]
  0a8eb85d_6ed9_1d4a_f4ce_a7b196f65500 -->|calls| 7fe91473_e539_4684_c2bb_100b00a72d23
  a8161e32_05f2_2814_d64d_f8a57a64cc40["incrementHeap()"]
  0a8eb85d_6ed9_1d4a_f4ce_a7b196f65500 -->|calls| a8161e32_05f2_2814_d64d_f8a57a64cc40
  style 0a8eb85d_6ed9_1d4a_f4ce_a7b196f65500 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/UnpooledByteBufAllocator.java lines 163–168

        @Override
        protected byte[] allocateArray(int initialCapacity) {
            byte[] bytes = super.allocateArray(initialCapacity);
            ((UnpooledByteBufAllocator) alloc()).incrementHeap(bytes.length);
            return bytes;
        }

Domain

Subdomains

Called By

Frequently Asked Questions

What does allocateArray() do?
allocateArray() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/UnpooledByteBufAllocator.java.
Where is allocateArray() defined?
allocateArray() is defined in buffer/src/main/java/io/netty/buffer/UnpooledByteBufAllocator.java at line 163.
What does allocateArray() call?
allocateArray() calls 2 function(s): allocateArray, incrementHeap.
What calls allocateArray()?
allocateArray() is called by 1 function(s): allocateArray.

Analyze Your Own Codebase

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

Try Supermodel Free