Home / Function/ ByteBuf() — netty Function Reference

ByteBuf() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  2db8ecdf_07ef_92cb_6507_98b4bf0d5fbc["ByteBuf()"]
  e5651d92_5383_a8ce_bfcd_cd981e4f9b40["UnpooledByteBufAllocator"]
  2db8ecdf_07ef_92cb_6507_98b4bf0d5fbc -->|defined in| e5651d92_5383_a8ce_bfcd_cd981e4f9b40
  de103f0f_a4ea_df95_1089_299a5704b304["InstrumentedUnpooledUnsafeHeapByteBuf()"]
  2db8ecdf_07ef_92cb_6507_98b4bf0d5fbc -->|calls| de103f0f_a4ea_df95_1089_299a5704b304
  c3f26c40_d549_46d8_aaa0_e6c71d1156a9["InstrumentedUnpooledHeapByteBuf()"]
  2db8ecdf_07ef_92cb_6507_98b4bf0d5fbc -->|calls| c3f26c40_d549_46d8_aaa0_e6c71d1156a9
  3ec08678_942c_baca_6c9a_ce10970193a1["InstrumentedUnpooledUnsafeNoCleanerDirectByteBuf()"]
  2db8ecdf_07ef_92cb_6507_98b4bf0d5fbc -->|calls| 3ec08678_942c_baca_6c9a_ce10970193a1
  02b8cae0_a90b_7188_becf_459d4bec7c29["InstrumentedUnpooledUnsafeDirectByteBuf()"]
  2db8ecdf_07ef_92cb_6507_98b4bf0d5fbc -->|calls| 02b8cae0_a90b_7188_becf_459d4bec7c29
  045d950d_4b93_c58e_c767_050163ce75bb["InstrumentedUnpooledDirectByteBuf()"]
  2db8ecdf_07ef_92cb_6507_98b4bf0d5fbc -->|calls| 045d950d_4b93_c58e_c767_050163ce75bb
  style 2db8ecdf_07ef_92cb_6507_98b4bf0d5fbc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/UnpooledByteBufAllocator.java lines 81–86

    @Override
    protected ByteBuf newHeapBuffer(int initialCapacity, int maxCapacity) {
        return PlatformDependent.hasUnsafe() ?
                new InstrumentedUnpooledUnsafeHeapByteBuf(this, initialCapacity, maxCapacity) :
                new InstrumentedUnpooledHeapByteBuf(this, initialCapacity, maxCapacity);
    }

Domain

Subdomains

Frequently Asked Questions

What does ByteBuf() do?
ByteBuf() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/UnpooledByteBufAllocator.java.
Where is ByteBuf() defined?
ByteBuf() is defined in buffer/src/main/java/io/netty/buffer/UnpooledByteBufAllocator.java at line 81.
What does ByteBuf() call?
ByteBuf() calls 5 function(s): InstrumentedUnpooledDirectByteBuf, InstrumentedUnpooledHeapByteBuf, InstrumentedUnpooledUnsafeDirectByteBuf, InstrumentedUnpooledUnsafeHeapByteBuf, InstrumentedUnpooledUnsafeNoCleanerDirectByteBuf.

Analyze Your Own Codebase

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

Try Supermodel Free