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