Home / Function/ decode() — netty Function Reference

decode() — netty Function Reference

Architecture documentation for the decode() function in QpackEncoderDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  879f268a_79d6_4e84_4dcc_69e8fceb5059["decode()"]
  a2f105b8_5272_f106_c6ff_e4604fde3ee0["QpackEncoderDecoderTest"]
  879f268a_79d6_4e84_4dcc_69e8fceb5059 -->|defined in| a2f105b8_5272_f106_c6ff_e4604fde3ee0
  158d5307_2479_2a29_560d_51623d8a8403["indexWrapAround()"]
  158d5307_2479_2a29_560d_51623d8a8403 -->|calls| 879f268a_79d6_4e84_4dcc_69e8fceb5059
  ee3a6ee4_b7dd_a2a4_fdd2_9c86e3dea783["indexWrapAroundWithBlockedStreams()"]
  ee3a6ee4_b7dd_a2a4_fdd2_9c86e3dea783 -->|calls| 879f268a_79d6_4e84_4dcc_69e8fceb5059
  33bd7c0f_f1af_f340_0762_d70deb77d283["duplicate()"]
  33bd7c0f_f1af_f340_0762_d70deb77d283 -->|calls| 879f268a_79d6_4e84_4dcc_69e8fceb5059
  89cc0ebd_0d9c_8809_c991_b6e08c14fccc["duplicateWithBlockedStreams()"]
  89cc0ebd_0d9c_8809_c991_b6e08c14fccc -->|calls| 879f268a_79d6_4e84_4dcc_69e8fceb5059
  03d51482_35ec_6301_b735_1bbed1e47a21["testDynamicTableIndexed()"]
  03d51482_35ec_6301_b735_1bbed1e47a21 -->|calls| 879f268a_79d6_4e84_4dcc_69e8fceb5059
  a074fc6f_eb09_bb92_e78d_571f8806ca4c["testDynamicTableIndexedWithBlockedStreams()"]
  a074fc6f_eb09_bb92_e78d_571f8806ca4c -->|calls| 879f268a_79d6_4e84_4dcc_69e8fceb5059
  b774b554_6eff_2093_126f_daa68cea8d0b["staticTableOnly()"]
  b774b554_6eff_2093_126f_daa68cea8d0b -->|calls| 879f268a_79d6_4e84_4dcc_69e8fceb5059
  507a145e_564d_e526_8c27_e8769b809efe["decoderThrowsOnInvalidInput()"]
  507a145e_564d_e526_8c27_e8769b809efe -->|calls| 879f268a_79d6_4e84_4dcc_69e8fceb5059
  style 879f268a_79d6_4e84_4dcc_69e8fceb5059 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http3/src/test/java/io/netty/handler/codec/http3/QpackEncoderDecoderTest.java lines 423–437

    private void decode(ByteBuf buf, Http3Headers headers) throws QpackException {
        decoder.decode(attributes, 1, buf, buf.readableBytes(),
                new Http3HeadersSink(headers, 1024, false, false), () -> {
                    try {
                        decoder.decode(attributes, 1, buf, buf.readableBytes(),
                                new Http3HeadersSink(headers, 1024, false, false),
                                () -> {
                                    throw new IllegalStateException("Decode resumption suspended.");
                                });
                    } catch (QpackException e) {
                        throw new AssertionError("Decode failed.", e);
                    }
                });
        assertThat("Parent channel closed.", parent.isActive(), is(true));
    }

Domain

Subdomains

Frequently Asked Questions

What does decode() do?
decode() is a function in the netty codebase, defined in codec-http3/src/test/java/io/netty/handler/codec/http3/QpackEncoderDecoderTest.java.
Where is decode() defined?
decode() is defined in codec-http3/src/test/java/io/netty/handler/codec/http3/QpackEncoderDecoderTest.java at line 423.
What calls decode()?
decode() is called by 8 function(s): decoderThrowsOnInvalidInput, duplicate, duplicateWithBlockedStreams, indexWrapAround, indexWrapAroundWithBlockedStreams, staticTableOnly, testDynamicTableIndexed, testDynamicTableIndexedWithBlockedStreams.

Analyze Your Own Codebase

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

Try Supermodel Free