AsciiString() — netty Function Reference
Architecture documentation for the AsciiString() function in QpackHuffmanDecoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 6ee92640_47c2_01cc_a561_746f4c81d79d["AsciiString()"] fdc838f2_6462_b845_23d3_793f69152983["QpackHuffmanDecoder"] 6ee92640_47c2_01cc_a561_746f4c81d79d -->|defined in| fdc838f2_6462_b845_23d3_793f69152983 8ad45b78_06a3_2730_92b9_80d420a604b2["process()"] 6ee92640_47c2_01cc_a561_746f4c81d79d -->|calls| 8ad45b78_06a3_2730_92b9_80d420a604b2 style 6ee92640_47c2_01cc_a561_746f4c81d79d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http3/src/main/java/io/netty/handler/codec/http3/QpackHuffmanDecoder.java lines 4665–4693
public AsciiString decode(ByteBuf buf, int length) throws QpackException {
if (length == 0) {
return AsciiString.EMPTY_STRING;
}
dest = new byte[length * 8 / 5];
try {
int readerIndex = buf.readerIndex();
// Using ByteProcessor to reduce bounds-checking and reference-count checking during byte-by-byte
// processing of the ByteBuf.
int endIndex = buf.forEachByte(readerIndex, length, this);
if (endIndex == -1) {
// We did consume the requested length
buf.readerIndex(readerIndex + length);
if ((state & HUFFMAN_COMPLETE_SHIFT) != HUFFMAN_COMPLETE_SHIFT) {
throw BAD_ENCODING;
}
return new AsciiString(dest, 0, k, false);
}
// The process(...) method returned before the requested length was requested. This means there
// was a bad encoding detected.
buf.readerIndex(endIndex);
throw BAD_ENCODING;
} finally {
dest = null;
k = 0;
state = 0;
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does AsciiString() do?
AsciiString() is a function in the netty codebase, defined in codec-http3/src/main/java/io/netty/handler/codec/http3/QpackHuffmanDecoder.java.
Where is AsciiString() defined?
AsciiString() is defined in codec-http3/src/main/java/io/netty/handler/codec/http3/QpackHuffmanDecoder.java at line 4665.
What does AsciiString() call?
AsciiString() calls 1 function(s): process.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free