Home / Function/ createMap() — netty Function Reference

createMap() — netty Function Reference

Architecture documentation for the createMap() function in QpackStaticTable.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  fa91b2f9_ad1d_5c54_9a1a_3e2e2e9a0a5d["createMap()"]
  3687ade4_986c_50be_e037_a38635c664d3["QpackStaticTable"]
  fa91b2f9_ad1d_5c54_9a1a_3e2e2e9a0a5d -->|defined in| 3687ade4_986c_50be_e037_a38635c664d3
  style fa91b2f9_ad1d_5c54_9a1a_3e2e2e9a0a5d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http3/src/main/java/io/netty/handler/codec/http3/QpackStaticTable.java lines 207–223

    @SuppressWarnings("unchecked")
    private static CharSequenceMap<List<Integer>> createMap(int length) {
        CharSequenceMap<List<Integer>> mapping =
            new CharSequenceMap<List<Integer>>(true, UnsupportedValueConverter.<List<Integer>>instance(), length);
        for (int index = 0; index < length; index++) {
            final QpackHeaderField field = getField(index);
            final List<Integer> cursor = mapping.get(field.name);
            if (cursor == null) {
                final List<Integer> holder = new ArrayList<>(16);
                holder.add(index);
                mapping.set(field.name, holder);
            } else {
                cursor.add(index);
            }
        }
        return mapping;
    }

Domain

Subdomains

Frequently Asked Questions

What does createMap() do?
createMap() is a function in the netty codebase, defined in codec-http3/src/main/java/io/netty/handler/codec/http3/QpackStaticTable.java.
Where is createMap() defined?
createMap() is defined in codec-http3/src/main/java/io/netty/handler/codec/http3/QpackStaticTable.java at line 207.

Analyze Your Own Codebase

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

Try Supermodel Free