Home / Function/ setMediumLE() — netty Function Reference

setMediumLE() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/UnsafeByteBufUtil.java lines 168–177

    static void setMediumLE(long address, int value) {
        PlatformDependent.putByte(address, (byte) value);
        if (UNALIGNED) {
            PlatformDependent.putShort(address + 1, BIG_ENDIAN_NATIVE_ORDER ? Short.reverseBytes((short) (value >>> 8))
                                                                            : (short) (value >>> 8));
        } else {
            PlatformDependent.putByte(address + 1, (byte) (value >>> 8));
            PlatformDependent.putByte(address + 2, (byte) (value >>> 16));
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free