Home / Function/ getPrimitiveValue() — netty Function Reference

getPrimitiveValue() — netty Function Reference

Architecture documentation for the getPrimitiveValue() function in Quiche.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ef84e83f_a11e_89f8_664c_6a45c3d78fe5["getPrimitiveValue()"]
  6971678f_642f_87e6_e277_8e03dc5756a8["Quiche"]
  ef84e83f_a11e_89f8_664c_6a45c3d78fe5 -->|defined in| 6971678f_642f_87e6_e277_8e03dc5756a8
  style ef84e83f_a11e_89f8_664c_6a45c3d78fe5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-classes-quic/src/main/java/io/netty/handler/codec/quic/Quiche.java lines 846–859

    static long getPrimitiveValue(ByteBuffer memory, int offset, int valueType) {
        switch (valueType) {
            case 1:
                return memory.get(offset);
            case 2:
                return memory.getShort(offset);
            case 4:
                return memory.getInt(offset);
            case 8:
                return memory.getLong(offset);
            default:
                throw new IllegalStateException();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does getPrimitiveValue() do?
getPrimitiveValue() is a function in the netty codebase, defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/Quiche.java.
Where is getPrimitiveValue() defined?
getPrimitiveValue() is defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/Quiche.java at line 846.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free