Home / Function/ AsciiString() — netty Function Reference

AsciiString() — netty Function Reference

Architecture documentation for the AsciiString() function in HpackDecoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9460e2c3_1533_4ca7_d387_d78b34c4564f["AsciiString()"]
  929eb7d3_94e9_fa41_fd78_c76a9b499b89["HpackDecoder"]
  9460e2c3_1533_4ca7_d387_d78b34c4564f -->|defined in| 929eb7d3_94e9_fa41_fd78_c76a9b499b89
  9ddcd0d7_f2a7_3eb8_850c_c3ab8a1f637f["length()"]
  9460e2c3_1533_4ca7_d387_d78b34c4564f -->|calls| 9ddcd0d7_f2a7_3eb8_850c_c3ab8a1f637f
  f902eae9_e223_3289_c748_bbdc7d188389["decode()"]
  9460e2c3_1533_4ca7_d387_d78b34c4564f -->|calls| f902eae9_e223_3289_c748_bbdc7d188389
  style 9460e2c3_1533_4ca7_d387_d78b34c4564f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/HpackDecoder.java lines 411–421

    private AsciiString readName(int index) throws Http2Exception {
        if (index <= HpackStaticTable.length) {
            HpackHeaderField hpackHeaderField = HpackStaticTable.getEntry(index);
            return (AsciiString) hpackHeaderField.name;
        }
        if (index - HpackStaticTable.length <= hpackDynamicTable.length()) {
            HpackHeaderField hpackHeaderField = hpackDynamicTable.getEntry(index - HpackStaticTable.length);
            return (AsciiString) hpackHeaderField.name;
        }
        throw READ_NAME_ILLEGAL_INDEX_VALUE;
    }

Domain

Subdomains

Frequently Asked Questions

What does AsciiString() do?
AsciiString() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/HpackDecoder.java.
Where is AsciiString() defined?
AsciiString() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/HpackDecoder.java at line 411.
What does AsciiString() call?
AsciiString() calls 2 function(s): decode, length.

Analyze Your Own Codebase

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

Try Supermodel Free