Home / Function/ getShortLE() — netty Function Reference

getShortLE() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  65e3c6e7_7963_2f5f_402d_1950b0141ffd["getShortLE()"]
  2f99d7c3_a5a0_5538_ae7e_a825ef1ab37a["UnsafeByteBufUtil"]
  65e3c6e7_7963_2f5f_402d_1950b0141ffd -->|defined in| 2f99d7c3_a5a0_5538_ae7e_a825ef1ab37a
  bb305000_1c2e_fc56_3232_7a19da9d98e2["getShort()"]
  65e3c6e7_7963_2f5f_402d_1950b0141ffd -->|calls| bb305000_1c2e_fc56_3232_7a19da9d98e2
  d356e941_856a_4a4d_00ac_1449a287f3a1["getByte()"]
  65e3c6e7_7963_2f5f_402d_1950b0141ffd -->|calls| d356e941_856a_4a4d_00ac_1449a287f3a1
  style 65e3c6e7_7963_2f5f_402d_1950b0141ffd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/UnsafeByteBufUtil.java lines 51–57

    static short getShortLE(long address) {
        if (UNALIGNED) {
            short v = PlatformDependent.getShort(address);
            return BIG_ENDIAN_NATIVE_ORDER ? Short.reverseBytes(v) : v;
        }
        return (short) (PlatformDependent.getByte(address) & 0xff | PlatformDependent.getByte(address + 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/UnsafeByteBufUtil.java.
Where is getShortLE() defined?
getShortLE() is defined in buffer/src/main/java/io/netty/buffer/UnsafeByteBufUtil.java at line 51.
What does getShortLE() call?
getShortLE() calls 2 function(s): getByte, getShort.

Analyze Your Own Codebase

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

Try Supermodel Free