Home / Function/ CompositeByteBuf() — netty Function Reference

CompositeByteBuf() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  ecd99504_0536_2926_feda_c49ce31e9837["CompositeByteBuf()"]
  36746ada_c520_ff41_b142_9731cc8488a6["TestByteBufAllocator"]
  ecd99504_0536_2926_feda_c49ce31e9837 -->|defined in| 36746ada_c520_ff41_b142_9731cc8488a6
  style ecd99504_0536_2926_feda_c49ce31e9837 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java lines 425–439

        @Override
        public CompositeByteBuf compositeBuffer() {
            switch (type) {
                case Direct:
                    return allocator.compositeDirectBuffer();
                case Heap:
                    return allocator.compositeHeapBuffer();
                case Mixed:
                    return ThreadLocalRandom.current().nextBoolean() ?
                            allocator.compositeDirectBuffer() :
                            allocator.compositeHeapBuffer();
                default:
                    throw new Error("Unexpected buffer type: " + type);
            }
        }

Domain

Subdomains

Frequently Asked Questions

What does CompositeByteBuf() do?
CompositeByteBuf() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java.
Where is CompositeByteBuf() defined?
CompositeByteBuf() is defined in handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java at line 425.

Analyze Your Own Codebase

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

Try Supermodel Free