Home / Function/ setShortLE() — netty Function Reference

setShortLE() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  4067d53e_de3d_d51c_3637_5151a99924f9["setShortLE()"]
  2f99d7c3_a5a0_5538_ae7e_a825ef1ab37a["UnsafeByteBufUtil"]
  4067d53e_de3d_d51c_3637_5151a99924f9 -->|defined in| 2f99d7c3_a5a0_5538_ae7e_a825ef1ab37a
  style 4067d53e_de3d_d51c_3637_5151a99924f9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/UnsafeByteBufUtil.java lines 147–155

    static void setShortLE(long address, int value) {
        if (UNALIGNED) {
            PlatformDependent.putShort(
                address, BIG_ENDIAN_NATIVE_ORDER ? Short.reverseBytes((short) value) : (short) value);
        } else {
            PlatformDependent.putByte(address, (byte) value);
            PlatformDependent.putByte(address + 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/UnsafeByteBufUtil.java.
Where is setShortLE() defined?
setShortLE() is defined in buffer/src/main/java/io/netty/buffer/UnsafeByteBufUtil.java at line 147.

Analyze Your Own Codebase

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

Try Supermodel Free