Home / Function/ getEntryIndex() — netty Function Reference

getEntryIndex() — netty Function Reference

Architecture documentation for the getEntryIndex() function in QpackEncoderDynamicTable.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f75601b2_b056_67da_709d_f36cf23dfab5["getEntryIndex()"]
  4f2fd884_2460_757f_867b_2f1f2c79f9b9["QpackEncoderDynamicTable"]
  f75601b2_b056_67da_709d_f36cf23dfab5 -->|defined in| 4f2fd884_2460_757f_867b_2f1f2c79f9b9
  8f9a54be_14b3_a183_4da8_f1b9220ab184["index()"]
  f75601b2_b056_67da_709d_f36cf23dfab5 -->|calls| 8f9a54be_14b3_a183_4da8_f1b9220ab184
  style f75601b2_b056_67da_709d_f36cf23dfab5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http3/src/main/java/io/netty/handler/codec/http3/QpackEncoderDynamicTable.java lines 303–327

    int getEntryIndex(@Nullable CharSequence name, @Nullable CharSequence value) {
        if (tail != head && name != null && value != null) {
            int h = AsciiString.hashCode(name);
            int i = index(h);
            HeaderEntry firstNameMatch = null;
            HeaderEntry entry = null;
            for (HeaderEntry e = fields[i]; e != null; e = e.nextSibling) {
                if (e.hash == h && equalsVariableTime(value, e.value)) {
                    if (equalsVariableTime(name, e.name)) {
                        entry = e;
                        break;
                    }
                } else if (firstNameMatch == null && equalsVariableTime(name, e.name)) {
                    firstNameMatch = e;
                }
            }
            if (entry != null) {
                return entry.index;
            }
            if (firstNameMatch != null) {
                return -firstNameMatch.index - 1;
            }
        }
        return NOT_FOUND;
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does getEntryIndex() do?
getEntryIndex() is a function in the netty codebase, defined in codec-http3/src/main/java/io/netty/handler/codec/http3/QpackEncoderDynamicTable.java.
Where is getEntryIndex() defined?
getEntryIndex() is defined in codec-http3/src/main/java/io/netty/handler/codec/http3/QpackEncoderDynamicTable.java at line 303.
What does getEntryIndex() call?
getEntryIndex() calls 1 function(s): index.

Analyze Your Own Codebase

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

Try Supermodel Free