Home / Function/ getVariableLengthInteger() — netty Function Reference

getVariableLengthInteger() — netty Function Reference

Architecture documentation for the getVariableLengthInteger() function in QuicHeaderParser.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  5ae8919b_456e_6bed_711b_5be295e22b94["getVariableLengthInteger()"]
  c7e41129_a960_2079_d47e_46ceea19e35c["QuicHeaderParser"]
  5ae8919b_456e_6bed_711b_5be295e22b94 -->|defined in| c7e41129_a960_2079_d47e_46ceea19e35c
  a4f94f0b_5587_d928_f3fc_be19cc9bcfc4["ByteBuf()"]
  a4f94f0b_5587_d928_f3fc_be19cc9bcfc4 -->|calls| 5ae8919b_456e_6bed_711b_5be295e22b94
  8c03fba7_750c_033c_0ce0_7bb5c59ba68a["checkReadable()"]
  5ae8919b_456e_6bed_711b_5be295e22b94 -->|calls| 8c03fba7_750c_033c_0ce0_7bb5c59ba68a
  style 5ae8919b_456e_6bed_711b_5be295e22b94 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicHeaderParser.java lines 198–212

    private static long getVariableLengthInteger(ByteBuf in, int offset, int len) throws QuicException {
        checkReadable(offset, in.readableBytes(), len);
        switch (len) {
            case 1:
                return in.getUnsignedByte(offset);
            case 2:
                return in.getUnsignedShort(offset) & 0x3fff;
            case 4:
                return in.getUnsignedInt(offset) & 0x3fffffff;
            case 8:
                return in.getLong(offset) & 0x3fffffffffffffffL;
            default:
                throw newProtocolViolationException("Unsupported length:" + len);
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does getVariableLengthInteger() do?
getVariableLengthInteger() is a function in the netty codebase, defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicHeaderParser.java.
Where is getVariableLengthInteger() defined?
getVariableLengthInteger() is defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicHeaderParser.java at line 198.
What does getVariableLengthInteger() call?
getVariableLengthInteger() calls 1 function(s): checkReadable.
What calls getVariableLengthInteger()?
getVariableLengthInteger() 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