checkNewCapacity() — netty Function Reference
Architecture documentation for the checkNewCapacity() function in AbstractByteBuf.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 58c702b1_f094_df73_7418_77fc86b1b249["checkNewCapacity()"] bbab270f_457a_3319_83a8_0a0540484666["AbstractByteBuf"] 58c702b1_f094_df73_7418_77fc86b1b249 -->|defined in| bbab270f_457a_3319_83a8_0a0540484666 6d7a760c_9235_3c42_7498_04dce6863295["ensureAccessible()"] 58c702b1_f094_df73_7418_77fc86b1b249 -->|calls| 6d7a760c_9235_3c42_7498_04dce6863295 f4e37074_4ad7_6a4d_b116_3b334abcf18d["maxCapacity()"] 58c702b1_f094_df73_7418_77fc86b1b249 -->|calls| f4e37074_4ad7_6a4d_b116_3b334abcf18d style 58c702b1_f094_df73_7418_77fc86b1b249 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/AbstractByteBuf.java lines 1457–1463
protected final void checkNewCapacity(int newCapacity) {
ensureAccessible();
if (checkBounds && (newCapacity < 0 || newCapacity > maxCapacity())) {
throw new IllegalArgumentException("newCapacity: " + newCapacity +
" (expected: 0-" + maxCapacity() + ')');
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does checkNewCapacity() do?
checkNewCapacity() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/AbstractByteBuf.java.
Where is checkNewCapacity() defined?
checkNewCapacity() is defined in buffer/src/main/java/io/netty/buffer/AbstractByteBuf.java at line 1457.
What does checkNewCapacity() call?
checkNewCapacity() calls 2 function(s): ensureAccessible, maxCapacity.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free