skipControlChars() — netty Function Reference
Architecture documentation for the skipControlChars() function in HttpObjectDecoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD d87a93a4_b50d_553a_ff04_98f1cc468821["skipControlChars()"] f6d5dc41_af35_bf8a_75da_1474a14923bc["LineParser"] d87a93a4_b50d_553a_ff04_98f1cc468821 -->|defined in| f6d5dc41_af35_bf8a_75da_1474a14923bc 39c2c817_627b_3881_f9ba_0e89bdbe5fdd["ByteBuf()"] 39c2c817_627b_3881_f9ba_0e89bdbe5fdd -->|calls| d87a93a4_b50d_553a_ff04_98f1cc468821 style d87a93a4_b50d_553a_ff04_98f1cc468821 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java lines 1249–1264
private boolean skipControlChars(ByteBuf buffer, int readableBytes, int readerIndex) {
assert currentState == State.SKIP_CONTROL_CHARS;
final int maxToSkip = Math.min(maxLength, readableBytes);
final int firstNonControlIndex = buffer.forEachByte(readerIndex, maxToSkip, SKIP_CONTROL_CHARS_BYTES);
if (firstNonControlIndex == -1) {
buffer.skipBytes(maxToSkip);
if (readableBytes > maxLength) {
throw newException(maxLength);
}
return true;
}
// from now on we don't care about control chars
buffer.readerIndex(firstNonControlIndex);
currentState = State.READ_INITIAL;
return false;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does skipControlChars() do?
skipControlChars() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java.
Where is skipControlChars() defined?
skipControlChars() is defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.java at line 1249.
What calls skipControlChars()?
skipControlChars() is called by 1 function(s): ByteBuf.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free