numBytesForVariableLengthInteger() — netty Function Reference
Architecture documentation for the numBytesForVariableLengthInteger() function in QuicHeaderParser.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 401289e2_5203_16b5_e109_038634d7531b["numBytesForVariableLengthInteger()"] c7e41129_a960_2079_d47e_46ceea19e35c["QuicHeaderParser"] 401289e2_5203_16b5_e109_038634d7531b -->|defined in| c7e41129_a960_2079_d47e_46ceea19e35c a4f94f0b_5587_d928_f3fc_be19cc9bcfc4["ByteBuf()"] a4f94f0b_5587_d928_f3fc_be19cc9bcfc4 -->|calls| 401289e2_5203_16b5_e109_038634d7531b style 401289e2_5203_16b5_e109_038634d7531b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicHeaderParser.java lines 219–231
private static int numBytesForVariableLengthInteger(byte b) {
byte val = (byte) (b >> 6);
if ((val & 1) != 0) {
if ((val & 2) != 0) {
return 8;
}
return 2;
}
if ((val & 2) != 0) {
return 4;
}
return 1;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does numBytesForVariableLengthInteger() do?
numBytesForVariableLengthInteger() is a function in the netty codebase, defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicHeaderParser.java.
Where is numBytesForVariableLengthInteger() defined?
numBytesForVariableLengthInteger() is defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicHeaderParser.java at line 219.
What calls numBytesForVariableLengthInteger()?
numBytesForVariableLengthInteger() is called by 1 function(s): ByteBuf.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free