Home / Function/ _getInt() — netty Function Reference

_getInt() — netty Function Reference

Architecture documentation for the _getInt() function in FixedCompositeByteBuf.java from the netty codebase.

Function java Buffer Telemetry calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  56088213_797f_301b_95fd_47491cf84d60["_getInt()"]
  c3651b69_631a_1f76_b70c_086b089609c2["FixedCompositeByteBuf"]
  56088213_797f_301b_95fd_47491cf84d60 -->|defined in| c3651b69_631a_1f76_b70c_086b089609c2
  573824f1_10bf_1a0d_2dac_f9332c21f548["_getLong()"]
  573824f1_10bf_1a0d_2dac_f9332c21f548 -->|calls| 56088213_797f_301b_95fd_47491cf84d60
  5c0d2c6b_db15_b786_301b_c0ef5474fe2b["_getShort()"]
  56088213_797f_301b_95fd_47491cf84d60 -->|calls| 5c0d2c6b_db15_b786_301b_c0ef5474fe2b
  style 56088213_797f_301b_95fd_47491cf84d60 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/FixedCompositeByteBuf.java lines 319–329

    @Override
    protected int _getInt(int index) {
        Component c = findComponent(index);
        if (index + 4 <= c.endOffset) {
            return c.buf.getInt(index - c.offset);
        } else if (order() == ByteOrder.BIG_ENDIAN) {
            return (_getShort(index) & 0xffff) << 16 | _getShort(index + 2) & 0xffff;
        } else {
            return _getShort(index) & 0xFFFF | (_getShort(index + 2) & 0xFFFF) << 16;
        }
    }

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does _getInt() do?
_getInt() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/FixedCompositeByteBuf.java.
Where is _getInt() defined?
_getInt() is defined in buffer/src/main/java/io/netty/buffer/FixedCompositeByteBuf.java at line 319.
What does _getInt() call?
_getInt() calls 1 function(s): _getShort.
What calls _getInt()?
_getInt() is called by 1 function(s): _getLong.

Analyze Your Own Codebase

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

Try Supermodel Free