writeUtf8Surrogate() — netty Function Reference
Architecture documentation for the writeUtf8Surrogate() function in QueryStringEncoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 292af774_f477_a78b_4c13_7c754780ae80["writeUtf8Surrogate()"] 88739b5e_ab87_c690_d57f_c07e4748985e["QueryStringEncoder"] 292af774_f477_a78b_4c13_7c754780ae80 -->|defined in| 88739b5e_ab87_c690_d57f_c07e4748985e 6e537793_b2eb_9896_6f4e_18ef6539826b["encodeUtf8ComponentSlow()"] 6e537793_b2eb_9896_6f4e_18ef6539826b -->|calls| 292af774_f477_a78b_4c13_7c754780ae80 1e251d8b_1f4e_c93f_e50b_1d388bdd79dd["appendEncoded()"] 292af774_f477_a78b_4c13_7c754780ae80 -->|calls| 1e251d8b_1f4e_c93f_e50b_1d388bdd79dd style 292af774_f477_a78b_4c13_7c754780ae80 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/QueryStringEncoder.java lines 206–218
private void writeUtf8Surrogate(char c, char c2) {
if (!Character.isLowSurrogate(c2)) {
appendEncoded(WRITE_UTF_UNKNOWN);
appendEncoded(Character.isHighSurrogate(c2) ? WRITE_UTF_UNKNOWN : c2);
return;
}
int codePoint = Character.toCodePoint(c, c2);
// See https://www.unicode.org/versions/Unicode7.0.0/ch03.pdf#G2630.
appendEncoded(0xf0 | (codePoint >> 18));
appendEncoded(0x80 | ((codePoint >> 12) & 0x3f));
appendEncoded(0x80 | ((codePoint >> 6) & 0x3f));
appendEncoded(0x80 | (codePoint & 0x3f));
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does writeUtf8Surrogate() do?
writeUtf8Surrogate() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/QueryStringEncoder.java.
Where is writeUtf8Surrogate() defined?
writeUtf8Surrogate() is defined in codec-http/src/main/java/io/netty/handler/codec/http/QueryStringEncoder.java at line 206.
What does writeUtf8Surrogate() call?
writeUtf8Surrogate() calls 1 function(s): appendEncoded.
What calls writeUtf8Surrogate()?
writeUtf8Surrogate() is called by 1 function(s): encodeUtf8ComponentSlow.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free