Home / Function/ ByteBuf() — netty Function Reference

ByteBuf() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  091879d0_a1de_111d_a8d3_371faaffe800["ByteBuf()"]
  f083df4b_1f17_0498_9ee1_c9dd1d401573["VarintDecodingBenchmark"]
  091879d0_a1de_111d_a8d3_371faaffe800 -->|defined in| f083df4b_1f17_0498_9ee1_c9dd1d401573
  style 091879d0_a1de_111d_a8d3_371faaffe800 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/handler/codec/protobuf/VarintDecodingBenchmark.java lines 112–120

    public static ByteBuf generateData(int varintLength, int capacity) {
        byte[] bytes = new byte[capacity];
        for (int i = 0; i < (varintLength - 1); i++) {
            bytes[i] = (byte) 150;
        }
        // delimiter
        bytes[varintLength - 1] = (byte) 1;
        return Unpooled.wrappedBuffer(bytes);
    }

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/handler/codec/protobuf/VarintDecodingBenchmark.java.
Where is ByteBuf() defined?
ByteBuf() is defined in microbench/src/main/java/io/netty/handler/codec/protobuf/VarintDecodingBenchmark.java at line 112.

Analyze Your Own Codebase

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

Try Supermodel Free