numBytesForVariableLengthInteger() — netty Function Reference
Architecture documentation for the numBytesForVariableLengthInteger() function in Http3CodecUtils.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 94a67ebd_2b78_3b76_f061_1f528f5902be["numBytesForVariableLengthInteger()"] 2d36ae1b_0899_d9aa_9040_95c1421cfa14["Http3CodecUtils"] 94a67ebd_2b78_3b76_f061_1f528f5902be -->|defined in| 2d36ae1b_0899_d9aa_9040_95c1421cfa14 3a9e2974_48e7_ecdd_a4da_fc9a981d13dd["writeVariableLengthInteger()"] 3a9e2974_48e7_ecdd_a4da_fc9a981d13dd -->|calls| 94a67ebd_2b78_3b76_f061_1f528f5902be style 94a67ebd_2b78_3b76_f061_1f528f5902be fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http3/src/main/java/io/netty/handler/codec/http3/Http3CodecUtils.java lines 108–122
static int numBytesForVariableLengthInteger(long value) {
if (value <= 63) {
return 1;
}
if (value <= 16383) {
return 2;
}
if (value <= 1073741823) {
return 4;
}
if (value <= 4611686018427387903L) {
return 8;
}
throw new IllegalArgumentException();
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does numBytesForVariableLengthInteger() do?
numBytesForVariableLengthInteger() is a function in the netty codebase, defined in codec-http3/src/main/java/io/netty/handler/codec/http3/Http3CodecUtils.java.
Where is numBytesForVariableLengthInteger() defined?
numBytesForVariableLengthInteger() is defined in codec-http3/src/main/java/io/netty/handler/codec/http3/Http3CodecUtils.java at line 108.
What calls numBytesForVariableLengthInteger()?
numBytesForVariableLengthInteger() is called by 1 function(s): writeVariableLengthInteger.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free