preProcessFrame() — netty Function Reference
Architecture documentation for the preProcessFrame() function in DefaultHttp2FrameReader.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 969e7b9f_005c_0301_2983_56e986f1d510["preProcessFrame()"] 3768d640_58c2_34e7_3d69_a4b578e0d11a["DefaultHttp2FrameReader"] 969e7b9f_005c_0301_2983_56e986f1d510 -->|defined in| 3768d640_58c2_34e7_3d69_a4b578e0d11a f53e0d0e_4159_3b85_497b_bc55cfb15681["readFrame()"] f53e0d0e_4159_3b85_497b_bc55cfb15681 -->|calls| 969e7b9f_005c_0301_2983_56e986f1d510 style 969e7b9f_005c_0301_2983_56e986f1d510 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2FrameReader.java lines 178–195
private boolean preProcessFrame(ByteBuf in) throws Http2Exception {
// Start pre-processing the frame by reading the necessary data
// in common between all frame types
if (in.readableBytes() < FRAME_HEADER_LENGTH) {
// Wait until the entire framing section has been read.
return false;
}
payloadLength = in.readUnsignedMedium();
if (payloadLength > maxFrameSize) {
throw connectionError(FRAME_SIZE_ERROR, "Frame length: %d exceeds maximum: %d", payloadLength,
maxFrameSize);
}
frameType = in.readByte();
flags = new Http2Flags(in.readUnsignedByte());
streamId = readUnsignedInt(in);
readingHeaders = false;
return true;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does preProcessFrame() do?
preProcessFrame() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2FrameReader.java.
Where is preProcessFrame() defined?
preProcessFrame() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2FrameReader.java at line 178.
What calls preProcessFrame()?
preProcessFrame() is called by 1 function(s): readFrame.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free