lengthWithoutTrailingPadding() — netty Function Reference
Architecture documentation for the lengthWithoutTrailingPadding() function in DefaultHttp2FrameReader.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 64b75707_7a6c_7e26_98ea_05793212d7e4["lengthWithoutTrailingPadding()"] 3768d640_58c2_34e7_3d69_a4b578e0d11a["DefaultHttp2FrameReader"] 64b75707_7a6c_7e26_98ea_05793212d7e4 -->|defined in| 3768d640_58c2_34e7_3d69_a4b578e0d11a cf6a8be8_446e_f75e_d0e1_4e573eeb1df1["readDataFrame()"] cf6a8be8_446e_f75e_d0e1_4e573eeb1df1 -->|calls| 64b75707_7a6c_7e26_98ea_05793212d7e4 7359663e_1255_5053_ca98_1c1b54534bc2["readHeadersFrame()"] 7359663e_1255_5053_ca98_1c1b54534bc2 -->|calls| 64b75707_7a6c_7e26_98ea_05793212d7e4 996fd454_25d0_9db7_efcf_42958509cd2a["readPushPromiseFrame()"] 996fd454_25d0_9db7_efcf_42958509cd2a -->|calls| 64b75707_7a6c_7e26_98ea_05793212d7e4 style 64b75707_7a6c_7e26_98ea_05793212d7e4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2FrameReader.java lines 624–633
private static int lengthWithoutTrailingPadding(int readableBytes, int padding) throws Http2Exception {
if (padding == 0) {
return readableBytes;
}
int n = readableBytes - (padding - 1);
if (n < 0) {
throw connectionError(PROTOCOL_ERROR, "Frame payload too small for padding.");
}
return n;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does lengthWithoutTrailingPadding() do?
lengthWithoutTrailingPadding() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2FrameReader.java.
Where is lengthWithoutTrailingPadding() defined?
lengthWithoutTrailingPadding() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2FrameReader.java at line 624.
What calls lengthWithoutTrailingPadding()?
lengthWithoutTrailingPadding() is called by 3 function(s): readDataFrame, readHeadersFrame, readPushPromiseFrame.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free