String() — netty Function Reference
Architecture documentation for the String() function in PoolSubpage.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 5528af64_365b_cd85_1ea3_8d857070ee91["String()"] a6a571ea_fcf9_6eda_c073_f8d61fa999a3["PoolSubpage"] 5528af64_365b_cd85_1ea3_8d857070ee91 -->|defined in| a6a571ea_fcf9_6eda_c073_f8d61fa999a3 8430ff84_07e1_7071_2284_67c0376a0787["lock()"] 5528af64_365b_cd85_1ea3_8d857070ee91 -->|calls| 8430ff84_07e1_7071_2284_67c0376a0787 16244a67_1ca6_10f2_7f85_bae2df13ecc1["unlock()"] 5528af64_365b_cd85_1ea3_8d857070ee91 -->|calls| 16244a67_1ca6_10f2_7f85_bae2df13ecc1 style 5528af64_365b_cd85_1ea3_8d857070ee91 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/PoolSubpage.java lines 217–241
@Override
public String toString() {
final int numAvail;
if (chunk == null) {
// This is the head so there is no need to synchronize at all as these never change.
numAvail = 0;
} else {
final boolean doNotDestroy;
PoolSubpage<T> head = chunk.arena.smallSubpagePools[headIndex];
head.lock();
try {
doNotDestroy = this.doNotDestroy;
numAvail = this.numAvail;
} finally {
head.unlock();
}
if (!doNotDestroy) {
// Not used for creating the String.
return "(" + runOffset + ": not in use)";
}
}
return "(" + this.runOffset + ": " + (this.maxNumElems - numAvail) + '/' + this.maxNumElems +
", offset: " + this.runOffset + ", length: " + this.runSize + ", elemSize: " + this.elemSize + ')';
}
Domain
Subdomains
Source
Frequently Asked Questions
What does String() do?
String() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/PoolSubpage.java.
Where is String() defined?
String() is defined in buffer/src/main/java/io/netty/buffer/PoolSubpage.java at line 217.
What does String() call?
String() 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