findLineBreak() — netty Function Reference
Architecture documentation for the findLineBreak() function in HttpPostBodyUtil.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 85f6b0ab_c9f1_6114_61fc_2bd23b446493["findLineBreak()"] d8fd760f_9426_5ef6_86a5_3c8c134ada4d["HttpPostBodyUtil"] 85f6b0ab_c9f1_6114_61fc_2bd23b446493 -->|defined in| d8fd760f_9426_5ef6_86a5_3c8c134ada4d 8c603946_ffae_b014_4d41_13d47a4fab99["findLastLineBreak()"] 8c603946_ffae_b014_4d41_13d47a4fab99 -->|calls| 85f6b0ab_c9f1_6114_61fc_2bd23b446493 style 85f6b0ab_c9f1_6114_61fc_2bd23b446493 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/multipart/HttpPostBodyUtil.java lines 162–173
static int findLineBreak(ByteBuf buffer, int index) {
int toRead = buffer.readableBytes() - (index - buffer.readerIndex());
int posFirstChar = buffer.bytesBefore(index, toRead, HttpConstants.LF);
if (posFirstChar == -1) {
// No LF, so neither CRLF
return -1;
}
if (posFirstChar > 0 && buffer.getByte(index + posFirstChar - 1) == HttpConstants.CR) {
posFirstChar--;
}
return posFirstChar;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does findLineBreak() do?
findLineBreak() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/multipart/HttpPostBodyUtil.java.
Where is findLineBreak() defined?
findLineBreak() is defined in codec-http/src/main/java/io/netty/handler/codec/http/multipart/HttpPostBodyUtil.java at line 162.
What calls findLineBreak()?
findLineBreak() is called by 1 function(s): findLastLineBreak.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free