Home / Function/ refCnt() — netty Function Reference

refCnt() — netty Function Reference

Architecture documentation for the refCnt() function in RefCnt.java from the netty codebase.

Function java CommonUtil Internal calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  f7a52891_9536_020e_129c_232b9aa92b42["refCnt()"]
  9f3f6929_64f5_00fb_95fc_73dbc8960435["RefCnt"]
  f7a52891_9536_020e_129c_232b9aa92b42 -->|defined in| 9f3f6929_64f5_00fb_95fc_73dbc8960435
  b77484c0_5f5e_e415_d3d1_a3ca9414281f["refCnt()"]
  b77484c0_5f5e_e415_d3d1_a3ca9414281f -->|calls| f7a52891_9536_020e_129c_232b9aa92b42
  374902fe_2879_012e_ab19_f1f5d43afcfa["refCnt()"]
  374902fe_2879_012e_ab19_f1f5d43afcfa -->|calls| f7a52891_9536_020e_129c_232b9aa92b42
  374902fe_2879_012e_ab19_f1f5d43afcfa["refCnt()"]
  f7a52891_9536_020e_129c_232b9aa92b42 -->|calls| 374902fe_2879_012e_ab19_f1f5d43afcfa
  style f7a52891_9536_020e_129c_232b9aa92b42 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/internal/RefCnt.java lines 81–91

    public static int refCnt(RefCnt ref) {
        switch (REF_CNT_IMPL) {
        case UNSAFE:
            return UnsafeRefCnt.refCnt(ref);
        case VAR_HANDLE:
            return VarHandleRefCnt.refCnt(ref);
        case ATOMIC_UPDATER:
        default:
            return AtomicRefCnt.refCnt(ref);
        }
    }

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does refCnt() do?
refCnt() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/internal/RefCnt.java.
Where is refCnt() defined?
refCnt() is defined in common/src/main/java/io/netty/util/internal/RefCnt.java at line 81.
What does refCnt() call?
refCnt() calls 1 function(s): refCnt.
What calls refCnt()?
refCnt() is called by 2 function(s): refCnt, refCnt.

Analyze Your Own Codebase

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

Try Supermodel Free