Home / Function/ encode() — netty Function Reference

encode() — netty Function Reference

Architecture documentation for the encode() function in HpackEncoderBenchmarkUniqueValues.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  d697d6a2_13d7_2557_b11d_772432285850["encode()"]
  2d9d1287_c63f_dcba_fd05_9eab3f019b5f["HpackEncoderBenchmarkUniqueValues"]
  d697d6a2_13d7_2557_b11d_772432285850 -->|defined in| 2d9d1287_c63f_dcba_fd05_9eab3f019b5f
  style d697d6a2_13d7_2557_b11d_772432285850 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/handler/codec/http2/HpackEncoderBenchmarkUniqueValues.java lines 88–99

    @Benchmark
    public void encode(Blackhole bh) throws Exception {
        output.clear();

        Http2Headers headers = http2Headers[r.nextInt(http2Headers.length)];

        // select between many encoders to prevent the encoder state from staying in the cpu L1 cache.
        HpackEncoder encoder = hpackEncoder[r.nextInt(hpackEncoder.length)];
        encoder.encodeHeaders(3, output, headers, Http2HeadersEncoder.NEVER_SENSITIVE);

        bh.consume(output);
    }

Domain

Subdomains

Frequently Asked Questions

What does encode() do?
encode() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/handler/codec/http2/HpackEncoderBenchmarkUniqueValues.java.
Where is encode() defined?
encode() is defined in microbench/src/main/java/io/netty/handler/codec/http2/HpackEncoderBenchmarkUniqueValues.java at line 88.

Analyze Your Own Codebase

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

Try Supermodel Free