Home / Function/ setPrimitiveValue() — netty Function Reference

setPrimitiveValue() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-classes-quic/src/main/java/io/netty/handler/codec/quic/Quiche.java lines 827–844

    static void setPrimitiveValue(ByteBuffer memory, int offset, int valueType, long value) {
        switch (valueType) {
            case 1:
                memory.put(offset, (byte) value);
                break;
            case 2:
                memory.putShort(offset, (short) value);
                break;
            case 4:
                memory.putInt(offset, (int) value);
                break;
            case 8:
                memory.putLong(offset, value);
                break;
            default:
                throw new IllegalStateException();
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free