Home / Function/ newByteBuf() — netty Function Reference

newByteBuf() — netty Function Reference

Architecture documentation for the newByteBuf() function in PoolArena.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  1d5acd1b_3766_a234_7ccb_465b1940ca4a["newByteBuf()"]
  5fe14aa6_3815_02ca_523d_4b66835a9f37["HeapArena"]
  1d5acd1b_3766_a234_7ccb_465b1940ca4a -->|defined in| 5fe14aa6_3815_02ca_523d_4b66835a9f37
  b2dab5a1_2c8a_6b7d_7572_856bc384aa6d["newByteBuf()"]
  b2dab5a1_2c8a_6b7d_7572_856bc384aa6d -->|calls| 1d5acd1b_3766_a234_7ccb_465b1940ca4a
  b2dab5a1_2c8a_6b7d_7572_856bc384aa6d["newByteBuf()"]
  1d5acd1b_3766_a234_7ccb_465b1940ca4a -->|calls| b2dab5a1_2c8a_6b7d_7572_856bc384aa6d
  style 1d5acd1b_3766_a234_7ccb_465b1940ca4a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/PoolArena.java lines 707–711

        @Override
        protected PooledByteBuf<byte[]> newByteBuf(int maxCapacity) {
            return HAS_UNSAFE ? PooledUnsafeHeapByteBuf.newUnsafeInstance(maxCapacity)
                    : PooledHeapByteBuf.newInstance(maxCapacity);
        }

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free