Home / Function/ getShortLE() — netty Function Reference

getShortLE() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/HeapByteBufUtil.java lines 40–45

    static short getShortLE(byte[] memory, int index) {
        if (PlatformDependent.hasVarHandle()) {
            return VarHandleByteBufferAccess.getShortLE(memory, index);
        }
        return (short) (memory[index] & 0xff | memory[index + 1] << 8);
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free