numAvailable() — netty Function Reference
Architecture documentation for the numAvailable() function in PoolSubpage.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 72308e0f_b202_7963_ba3d_96078a06bcd6["numAvailable()"] a6a571ea_fcf9_6eda_c073_f8d61fa999a3["PoolSubpage"] 72308e0f_b202_7963_ba3d_96078a06bcd6 -->|defined in| a6a571ea_fcf9_6eda_c073_f8d61fa999a3 8430ff84_07e1_7071_2284_67c0376a0787["lock()"] 72308e0f_b202_7963_ba3d_96078a06bcd6 -->|calls| 8430ff84_07e1_7071_2284_67c0376a0787 16244a67_1ca6_10f2_7f85_bae2df13ecc1["unlock()"] 72308e0f_b202_7963_ba3d_96078a06bcd6 -->|calls| 16244a67_1ca6_10f2_7f85_bae2df13ecc1 style 72308e0f_b202_7963_ba3d_96078a06bcd6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/PoolSubpage.java lines 248–261
@Override
public int numAvailable() {
if (chunk == null) {
// It's the head.
return 0;
}
PoolSubpage<T> head = chunk.arena.smallSubpagePools[headIndex];
head.lock();
try {
return numAvail;
} finally {
head.unlock();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does numAvailable() do?
numAvailable() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/PoolSubpage.java.
Where is numAvailable() defined?
numAvailable() is defined in buffer/src/main/java/io/netty/buffer/PoolSubpage.java at line 248.
What does numAvailable() call?
numAvailable() calls 2 function(s): lock, unlock.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free