Home / Function/ getUnsignedMediumLE() — netty Function Reference

getUnsignedMediumLE() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/UnsafeByteBufUtil.java lines 70–79

    static int getUnsignedMediumLE(long address) {
        if (UNALIGNED) {
            return (PlatformDependent.getByte(address) & 0xff) |
                    ((BIG_ENDIAN_NATIVE_ORDER ? Short.reverseBytes(PlatformDependent.getShort(address + 1))
                                              : PlatformDependent.getShort(address + 1)) & 0xffff) << 8;
        }
        return PlatformDependent.getByte(address)      & 0xff        |
               (PlatformDependent.getByte(address + 1) & 0xff) << 8  |
               (PlatformDependent.getByte(address + 2) & 0xff) << 16;
    }

Domain

Subdomains

Frequently Asked Questions

What does getUnsignedMediumLE() do?
getUnsignedMediumLE() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/UnsafeByteBufUtil.java.
Where is getUnsignedMediumLE() defined?
getUnsignedMediumLE() is defined in buffer/src/main/java/io/netty/buffer/UnsafeByteBufUtil.java at line 70.
What does getUnsignedMediumLE() call?
getUnsignedMediumLE() 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