Home / Function/ UnpooledDirectByteBuf() — netty Function Reference

UnpooledDirectByteBuf() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  92cb24e9_4705_60e3_ce33_766c568a1b37["UnpooledDirectByteBuf()"]
  9d6a7cd0_08a5_9155_3c10_b8a8fd6480e9["UnpooledDirectByteBuf"]
  92cb24e9_4705_60e3_ce33_766c568a1b37 -->|defined in| 9d6a7cd0_08a5_9155_3c10_b8a8fd6480e9
  f0d503c9_f91b_cb88_9a7f_93dd2f6f04ac["setByteBuffer()"]
  92cb24e9_4705_60e3_ce33_766c568a1b37 -->|calls| f0d503c9_f91b_cb88_9a7f_93dd2f6f04ac
  c84504bb_e9ee_6008_445c_268d5561caaf["isDirect()"]
  92cb24e9_4705_60e3_ce33_766c568a1b37 -->|calls| c84504bb_e9ee_6008_445c_268d5561caaf
  style 92cb24e9_4705_60e3_ce33_766c568a1b37 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/UnpooledDirectByteBuf.java lines 55–67

    public UnpooledDirectByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity) {
        super(maxCapacity);
        ObjectUtil.checkNotNull(alloc, "alloc");
        checkPositiveOrZero(initialCapacity, "initialCapacity");
        checkPositiveOrZero(maxCapacity, "maxCapacity");
        if (initialCapacity > maxCapacity) {
            throw new IllegalArgumentException(String.format(
                    "initialCapacity(%d) > maxCapacity(%d)", initialCapacity, maxCapacity));
        }

        this.alloc = alloc;
        setByteBuffer(allocateDirectBuffer(initialCapacity), false);
    }

Domain

Subdomains

Frequently Asked Questions

What does UnpooledDirectByteBuf() do?
UnpooledDirectByteBuf() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/UnpooledDirectByteBuf.java.
Where is UnpooledDirectByteBuf() defined?
UnpooledDirectByteBuf() is defined in buffer/src/main/java/io/netty/buffer/UnpooledDirectByteBuf.java at line 55.
What does UnpooledDirectByteBuf() call?
UnpooledDirectByteBuf() calls 2 function(s): isDirect, setByteBuffer.

Analyze Your Own Codebase

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

Try Supermodel Free