Home / Function/ _getLong() — netty Function Reference

_getLong() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  c4e9800d_e121_a64d_e2fa_361037009484["_getLong()"]
  6b8e4d93_5aed_4ff7_ccdd_9c021b0fe7d6["CompositeByteBuf"]
  c4e9800d_e121_a64d_e2fa_361037009484 -->|defined in| 6b8e4d93_5aed_4ff7_ccdd_9c021b0fe7d6
  d3be0b0f_c8ba_dc16_970f_8a5302e005af["idx()"]
  c4e9800d_e121_a64d_e2fa_361037009484 -->|calls| d3be0b0f_c8ba_dc16_970f_8a5302e005af
  2bb85f8b_bb4f_2de1_76d8_5043a502596c["_getInt()"]
  c4e9800d_e121_a64d_e2fa_361037009484 -->|calls| 2bb85f8b_bb4f_2de1_76d8_5043a502596c
  style c4e9800d_e121_a64d_e2fa_361037009484 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/CompositeByteBuf.java lines 1036–1046

    @Override
    protected long _getLong(int index) {
        Component c = findComponent0(index);
        if (index + 8 <= c.endOffset) {
            return c.buf.getLong(c.idx(index));
        } else if (order() == ByteOrder.BIG_ENDIAN) {
            return (_getInt(index) & 0xffffffffL) << 32 | _getInt(index + 4) & 0xffffffffL;
        } else {
            return _getInt(index) & 0xFFFFFFFFL | (_getInt(index + 4) & 0xFFFFFFFFL) << 32;
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does _getLong() do?
_getLong() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/CompositeByteBuf.java.
Where is _getLong() defined?
_getLong() is defined in buffer/src/main/java/io/netty/buffer/CompositeByteBuf.java at line 1036.
What does _getLong() call?
_getLong() calls 2 function(s): _getInt, idx.

Analyze Your Own Codebase

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

Try Supermodel Free