encodeSlowPath() — netty Function Reference
Architecture documentation for the encodeSlowPath() function in QpackHuffmanEncoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f77bef4d_d92e_47a2_74c1_66b2a5dee76f["encodeSlowPath()"] 4b79dd82_6f55_2bf1_6190_f22cb12cc745["QpackHuffmanEncoder"] f77bef4d_d92e_47a2_74c1_66b2a5dee76f -->|defined in| 4b79dd82_6f55_2bf1_6190_f22cb12cc745 7ddd2baf_fb66_a09e_3812_b19b8a4254fa["encode()"] 7ddd2baf_fb66_a09e_3812_b19b8a4254fa -->|calls| f77bef4d_d92e_47a2_74c1_66b2a5dee76f 54e813e6_f05a_21f4_818e_9c0768b978f9["length()"] f77bef4d_d92e_47a2_74c1_66b2a5dee76f -->|calls| 54e813e6_f05a_21f4_818e_9c0768b978f9 style f77bef4d_d92e_47a2_74c1_66b2a5dee76f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http3/src/main/java/io/netty/handler/codec/http3/QpackHuffmanEncoder.java lines 68–92
private void encodeSlowPath(ByteBuf out, CharSequence data) {
long current = 0;
int n = 0;
for (int i = 0; i < data.length(); i++) {
int b = data.charAt(i) & 0xFF;
int code = codes[b];
int nbits = lengths[b];
current <<= nbits;
current |= code;
n += nbits;
while (n >= 8) {
n -= 8;
out.writeByte((int) (current >> n));
}
}
if (n > 0) {
current <<= 8 - n;
current |= 0xFF >>> n; // this should be EOS symbol
out.writeByte((int) current);
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does encodeSlowPath() do?
encodeSlowPath() is a function in the netty codebase, defined in codec-http3/src/main/java/io/netty/handler/codec/http3/QpackHuffmanEncoder.java.
Where is encodeSlowPath() defined?
encodeSlowPath() is defined in codec-http3/src/main/java/io/netty/handler/codec/http3/QpackHuffmanEncoder.java at line 68.
What does encodeSlowPath() call?
encodeSlowPath() calls 1 function(s): length.
What calls encodeSlowPath()?
encodeSlowPath() is called by 1 function(s): encode.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free