findFieldIndex() — netty Function Reference
Architecture documentation for the findFieldIndex() function in QpackStaticTable.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e40a6b68_f153_ac24_1ac1_4e91e6719775["findFieldIndex()"] 3687ade4_986c_50be_e037_a38635c664d3["QpackStaticTable"] e40a6b68_f153_ac24_1ac1_4e91e6719775 -->|defined in| 3687ade4_986c_50be_e037_a38635c664d3 style e40a6b68_f153_ac24_1ac1_4e91e6719775 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http3/src/main/java/io/netty/handler/codec/http3/QpackStaticTable.java lines 184–202
static int findFieldIndex(CharSequence name, CharSequence value) {
final List<Integer> nameIndex = STATIC_INDEX_BY_NAME.get(name);
// Early return if name not found in the table.
if (nameIndex == null) {
return NOT_FOUND;
}
// If name was found, check all subsequence elements of the table for exact match.
for (int index: nameIndex) {
QpackHeaderField field = STATIC_TABLE.get(index);
if (QpackUtil.equalsVariableTime(value, field.value)) {
return index;
}
}
// No exact match was found but we still can reference the name.
return nameIndex.get(0) | MASK_NAME_REF;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does findFieldIndex() do?
findFieldIndex() is a function in the netty codebase, defined in codec-http3/src/main/java/io/netty/handler/codec/http3/QpackStaticTable.java.
Where is findFieldIndex() defined?
findFieldIndex() is defined in codec-http3/src/main/java/io/netty/handler/codec/http3/QpackStaticTable.java at line 184.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free