Home / Function/ add() — netty Function Reference

add() — netty Function Reference

Architecture documentation for the add() function in NativeLongArray.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  585f855d_185a_e249_9bc8_6e1397074cb7["add()"]
  d17350c3_e125_2323_980a_eae0f43600f1["NativeLongArray"]
  585f855d_185a_e249_9bc8_6e1397074cb7 -->|defined in| d17350c3_e125_2323_980a_eae0f43600f1
  682814d5_3a6f_0320_6ddc_71156d6dbd53["reallocIfNeeded()"]
  585f855d_185a_e249_9bc8_6e1397074cb7 -->|calls| 682814d5_3a6f_0320_6ddc_71156d6dbd53
  d2c10886_b527_ae57_27a3_a0ccffbf22eb["memoryOffset()"]
  585f855d_185a_e249_9bc8_6e1397074cb7 -->|calls| d2c10886_b527_ae57_27a3_a0ccffbf22eb
  9bdf2012_76da_b38f_16a0_3d556595e9b6["idx()"]
  585f855d_185a_e249_9bc8_6e1397074cb7 -->|calls| 9bdf2012_76da_b38f_16a0_3d556595e9b6
  style 585f855d_185a_e249_9bc8_6e1397074cb7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/NativeLongArray.java lines 49–57

    void add(long value) {
        reallocIfNeeded();
        if (PlatformDependent.hasUnsafe()) {
            PlatformDependent.putLong(memoryOffset(size), value);
        } else {
            memory.putLong(idx(size), value);
        }
        ++size;
    }

Domain

Subdomains

Frequently Asked Questions

What does add() do?
add() is a function in the netty codebase, defined in transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/NativeLongArray.java.
Where is add() defined?
add() is defined in transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/NativeLongArray.java at line 49.
What does add() call?
add() calls 3 function(s): idx, memoryOffset, reallocIfNeeded.

Analyze Your Own Codebase

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

Try Supermodel Free