Home / Function/ decodeLiteralWithPostBaseNameRef() — netty Function Reference

decodeLiteralWithPostBaseNameRef() — netty Function Reference

Architecture documentation for the decodeLiteralWithPostBaseNameRef() function in QpackDecoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  e8404a6c_c826_2b73_7dc3_c1a5524eba67["decodeLiteralWithPostBaseNameRef()"]
  90fa2d3f_8d04_4c74_e2ce_52229be77194["QpackDecoder"]
  e8404a6c_c826_2b73_7dc3_c1a5524eba67 -->|defined in| 90fa2d3f_8d04_4c74_e2ce_52229be77194
  678f973e_104e_7340_6c3b_b4ef23003fe0["decode()"]
  678f973e_104e_7340_6c3b_b4ef23003fe0 -->|calls| e8404a6c_c826_2b73_7dc3_c1a5524eba67
  style e8404a6c_c826_2b73_7dc3_c1a5524eba67 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http3/src/main/java/io/netty/handler/codec/http3/QpackDecoder.java lines 359–375

    private void decodeLiteralWithPostBaseNameRef(ByteBuf in, BiConsumer<CharSequence, CharSequence> sink, int base)
            throws QpackException {
        // https://www.rfc-editor.org/rfc/rfc9204.html#name-literal-field-line-with-nam
        //   0   1   2   3   4   5   6   7
        // +---+---+---+---+---+---+---+---+
        // | 0 | 0 | 0 | 0 | N |NameIdx(3+)|
        // +---+---+---+---+---+-----------+
        // | H |     Value Length (7+)     |
        // +---+---------------------------+
        // |  Value String (Length bytes)  |
        // +-------------------------------+
        final int idx = decodePrefixedIntegerAsInt(in, 3);
        assert idx >= 0;
        CharSequence name = dynamicTable.getEntryRelativeEncodedField(base + idx).name;
        final CharSequence value = decodeHuffmanEncodedLiteral(in, 7);
        sink.accept(name, value);
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does decodeLiteralWithPostBaseNameRef() do?
decodeLiteralWithPostBaseNameRef() is a function in the netty codebase, defined in codec-http3/src/main/java/io/netty/handler/codec/http3/QpackDecoder.java.
Where is decodeLiteralWithPostBaseNameRef() defined?
decodeLiteralWithPostBaseNameRef() is defined in codec-http3/src/main/java/io/netty/handler/codec/http3/QpackDecoder.java at line 359.
What calls decodeLiteralWithPostBaseNameRef()?
decodeLiteralWithPostBaseNameRef() is called by 1 function(s): decode.

Analyze Your Own Codebase

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

Try Supermodel Free