checkReadable() — netty Function Reference
Architecture documentation for the checkReadable() function in QuicHeaderParser.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 8c03fba7_750c_033c_0ce0_7bb5c59ba68a["checkReadable()"] c7e41129_a960_2079_d47e_46ceea19e35c["QuicHeaderParser"] 8c03fba7_750c_033c_0ce0_7bb5c59ba68a -->|defined in| c7e41129_a960_2079_d47e_46ceea19e35c 96928b1e_d3a9_3b36_08ba_c16229544e5c["parse()"] 96928b1e_d3a9_3b36_08ba_c16229544e5c -->|calls| 8c03fba7_750c_033c_0ce0_7bb5c59ba68a a4f94f0b_5587_d928_f3fc_be19cc9bcfc4["ByteBuf()"] a4f94f0b_5587_d928_f3fc_be19cc9bcfc4 -->|calls| 8c03fba7_750c_033c_0ce0_7bb5c59ba68a 5ae8919b_456e_6bed_711b_5be295e22b94["getVariableLengthInteger()"] 5ae8919b_456e_6bed_711b_5be295e22b94 -->|calls| 8c03fba7_750c_033c_0ce0_7bb5c59ba68a style 8c03fba7_750c_033c_0ce0_7bb5c59ba68a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicHeaderParser.java lines 186–191
private static void checkReadable(int offset, int readable, int needed) throws QuicException {
int r = readable - offset;
if (r < needed) {
throw newProtocolViolationException("Not enough bytes to read, " + r + " < " + needed);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does checkReadable() do?
checkReadable() is a function in the netty codebase, defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicHeaderParser.java.
Where is checkReadable() defined?
checkReadable() is defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicHeaderParser.java at line 186.
What calls checkReadable()?
checkReadable() is called by 3 function(s): ByteBuf, getVariableLengthInteger, parse.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free