skipIfNeeded() — netty Function Reference
Architecture documentation for the skipIfNeeded() function in JdkZlibDecoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 7b4beb12_b4f3_449d_8418_cc7cf01135ae["skipIfNeeded()"] bba68af7_04c2_8ee6_82f0_73e08fa3f9cd["JdkZlibDecoder"] 7b4beb12_b4f3_449d_8418_cc7cf01135ae -->|defined in| bba68af7_04c2_8ee6_82f0_73e08fa3f9cd 146f8d9e_03da_37c7_3683_c470a8d21243["readGZIPHeader()"] 146f8d9e_03da_37c7_3683_c470a8d21243 -->|calls| 7b4beb12_b4f3_449d_8418_cc7cf01135ae style 7b4beb12_b4f3_449d_8418_cc7cf01135ae fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-compression/src/main/java/io/netty/handler/codec/compression/JdkZlibDecoder.java lines 442–458
private boolean skipIfNeeded(ByteBuf in, int flagMask) {
if ((flags & flagMask) != 0) {
for (;;) {
if (!in.isReadable()) {
// We didnt find the end yet, need to retry again once more data is readable
return false;
}
int b = in.readUnsignedByte();
crc.update(b);
if (b == 0x00) {
break;
}
}
}
// Skip is handled, we can move to the next processing state.
return true;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does skipIfNeeded() do?
skipIfNeeded() is a function in the netty codebase, defined in codec-compression/src/main/java/io/netty/handler/codec/compression/JdkZlibDecoder.java.
Where is skipIfNeeded() defined?
skipIfNeeded() is defined in codec-compression/src/main/java/io/netty/handler/codec/compression/JdkZlibDecoder.java at line 442.
What calls skipIfNeeded()?
skipIfNeeded() is called by 1 function(s): readGZIPHeader.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free