Home / Function/ CompositeByteBuf() — netty Function Reference

CompositeByteBuf() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  a8d8eddb_dbf6_c90a_a4d8_e1e8ef507ebd["CompositeByteBuf()"]
  1b32157c_4c5c_4c3c_706b_1a74a9afdca7["ByteBufUtilTest"]
  a8d8eddb_dbf6_c90a_a4d8_e1e8ef507ebd -->|defined in| 1b32157c_4c5c_4c3c_706b_1a74a9afdca7
  style a8d8eddb_dbf6_c90a_a4d8_e1e8ef507ebd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java lines 74–92

    private CompositeByteBuf compositeByteBuf(BufferType bufferType) {
        switch (bufferType) {

            case DIRECT_UNPOOLED:
                return  UnpooledByteBufAllocator.DEFAULT.compositeDirectBuffer();
            case HEAP_UNPOOLED:
                return  UnpooledByteBufAllocator.DEFAULT.compositeHeapBuffer();
            case DIRECT_POOLED:
                return PooledByteBufAllocator.DEFAULT.compositeDirectBuffer();
            case HEAP_POOLED:
                return PooledByteBufAllocator.DEFAULT.compositeHeapBuffer();
            case DIRECT_ADAPTIVE:
                return adaptiveByteBufAllocator.compositeDirectBuffer();
            case HEAP_ADAPTIVE:
                return adaptiveByteBufAllocator.compositeHeapBuffer();
            default:
                throw new AssertionError("unexpected buffer type: " + bufferType);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does CompositeByteBuf() do?
CompositeByteBuf() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java.
Where is CompositeByteBuf() defined?
CompositeByteBuf() is defined in buffer/src/test/java/io/netty/buffer/ByteBufUtilTest.java at line 74.

Analyze Your Own Codebase

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

Try Supermodel Free