Home / Function/ ByteBuf() — netty Function Reference

ByteBuf() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  cf642669_36f3_5d41_760f_2c3610ed9a71["ByteBuf()"]
  7ad1569d_0704_7b12_e97c_432fbce0c6c9["SnappyDirectBenchmark"]
  cf642669_36f3_5d41_760f_2c3610ed9a71 -->|defined in| 7ad1569d_0704_7b12_e97c_432fbce0c6c9
  style cf642669_36f3_5d41_760f_2c3610ed9a71 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbench/snappy/SnappyDirectBenchmark.java lines 89–99

    @Benchmark
    public ByteBuf encode(AllocationMetrics allocationMetrics) {
        int length = in.readableBytes();
        snappy.encode(in, out, length);
        in.resetReaderIndex();
        allocationMetrics.inputSize += length;
        allocationMetrics.outputSize += out.readableBytes();
        out.setIndex(0, 0);

        return out;
    }

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/snappy/SnappyDirectBenchmark.java.
Where is ByteBuf() defined?
ByteBuf() is defined in microbench/src/main/java/io/netty/microbench/snappy/SnappyDirectBenchmark.java at line 89.

Analyze Your Own Codebase

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

Try Supermodel Free