Home / Function/ setShortLE() — netty Function Reference

setShortLE() — netty Function Reference

Architecture documentation for the setShortLE() function in HeapByteBufUtil.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  e7159856_339e_0605_41c8_8145bb83e8ab["setShortLE()"]
  96900c63_c206_9fee_a447_dc63a822832b["HeapByteBufUtil"]
  e7159856_339e_0605_41c8_8145bb83e8ab -->|defined in| 96900c63_c206_9fee_a447_dc63a822832b
  style e7159856_339e_0605_41c8_8145bb83e8ab fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/HeapByteBufUtil.java lines 136–143

    static void setShortLE(byte[] memory, int index, int value) {
        if (PlatformDependent.hasVarHandle()) {
            VarHandleByteBufferAccess.setShortLE(memory, index, value);
            return;
        }
        memory[index]     = (byte) value;
        memory[index + 1] = (byte) (value >>> 8);
    }

Domain

Subdomains

Frequently Asked Questions

What does setShortLE() do?
setShortLE() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/HeapByteBufUtil.java.
Where is setShortLE() defined?
setShortLE() is defined in buffer/src/main/java/io/netty/buffer/HeapByteBufUtil.java at line 136.

Analyze Your Own Codebase

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

Try Supermodel Free