Home / Function/ _getShortLE() — netty Function Reference

_getShortLE() — netty Function Reference

Architecture documentation for the _getShortLE() function in CompositeByteBuf.java from the netty codebase.

Function java Buffer Search calls 2 called by 2

Entity Profile

Dependency Diagram

graph TD
  5d389519_3ef7_6e68_9f2b_581c587a5a88["_getShortLE()"]
  6b8e4d93_5aed_4ff7_ccdd_9c021b0fe7d6["CompositeByteBuf"]
  5d389519_3ef7_6e68_9f2b_581c587a5a88 -->|defined in| 6b8e4d93_5aed_4ff7_ccdd_9c021b0fe7d6
  31bd00b2_7cba_15bc_c5f5_6fb130aa3550["_getUnsignedMediumLE()"]
  31bd00b2_7cba_15bc_c5f5_6fb130aa3550 -->|calls| 5d389519_3ef7_6e68_9f2b_581c587a5a88
  6e691bb1_7026_aa01_b194_50da474f4630["_getIntLE()"]
  6e691bb1_7026_aa01_b194_50da474f4630 -->|calls| 5d389519_3ef7_6e68_9f2b_581c587a5a88
  d3be0b0f_c8ba_dc16_970f_8a5302e005af["idx()"]
  5d389519_3ef7_6e68_9f2b_581c587a5a88 -->|calls| d3be0b0f_c8ba_dc16_970f_8a5302e005af
  43463545_972b_f928_94bd_1067c8bc534c["_getByte()"]
  5d389519_3ef7_6e68_9f2b_581c587a5a88 -->|calls| 43463545_972b_f928_94bd_1067c8bc534c
  style 5d389519_3ef7_6e68_9f2b_581c587a5a88 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/CompositeByteBuf.java lines 976–986

    @Override
    protected short _getShortLE(int index) {
        Component c = findComponent0(index);
        if (index + 2 <= c.endOffset) {
            return c.buf.getShortLE(c.idx(index));
        } else if (order() == ByteOrder.BIG_ENDIAN) {
            return (short) (_getByte(index) & 0xff | (_getByte(index + 1) & 0xff) << 8);
        } else {
            return (short) ((_getByte(index) & 0xff) << 8 | _getByte(index + 1) & 0xff);
        }
    }

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/CompositeByteBuf.java.
Where is _getShortLE() defined?
_getShortLE() is defined in buffer/src/main/java/io/netty/buffer/CompositeByteBuf.java at line 976.
What does _getShortLE() call?
_getShortLE() calls 2 function(s): _getByte, idx.
What calls _getShortLE()?
_getShortLE() is called by 2 function(s): _getIntLE, _getUnsignedMediumLE.

Analyze Your Own Codebase

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

Try Supermodel Free