Home / Function/ ByteBuf() — netty Function Reference

ByteBuf() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  51cbddf0_0d89_81e5_8252_55108c237518["ByteBuf()"]
  32a7d68f_9a9a_90eb_4ba9_69c43a157613["HttpPipelinedRequestDecoderBenchmark"]
  51cbddf0_0d89_81e5_8252_55108c237518 -->|defined in| 32a7d68f_9a9a_90eb_4ba9_69c43a157613
  style 51cbddf0_0d89_81e5_8252_55108c237518 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbench/http/HttpPipelinedRequestDecoderBenchmark.java lines 81–88

    private static ByteBuf pipelined(ByteBufAllocator alloc, byte[] content, int pipeline, boolean direct) {
        final int totalSize = pipeline * content.length;
        final ByteBuf buf = direct? alloc.directBuffer(totalSize, totalSize) : alloc.heapBuffer(totalSize, totalSize);
        for (int i = 0; i < pipeline; i++) {
            buf.writeBytes(content);
        }
        return buf;
    }

Domain

Subdomains

Frequently Asked Questions

What does ByteBuf() do?
ByteBuf() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/http/HttpPipelinedRequestDecoderBenchmark.java.
Where is ByteBuf() defined?
ByteBuf() is defined in microbench/src/main/java/io/netty/microbench/http/HttpPipelinedRequestDecoderBenchmark.java at line 81.

Analyze Your Own Codebase

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

Try Supermodel Free