checkForOverflow() — netty Function Reference
Architecture documentation for the checkForOverflow() function in CompositeByteBuf.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 59bfffdc_1653_76b9_674e_0f9e0a0ace57["checkForOverflow()"] 6b8e4d93_5aed_4ff7_ccdd_9c021b0fe7d6["CompositeByteBuf"] 59bfffdc_1653_76b9_674e_0f9e0a0ace57 -->|defined in| 6b8e4d93_5aed_4ff7_ccdd_9c021b0fe7d6 59aa513a_9196_9707_e719_00f253da08eb["addComponent0()"] 59aa513a_9196_9707_e719_00f253da08eb -->|calls| 59bfffdc_1653_76b9_674e_0f9e0a0ace57 e9920c4e_d91d_be1d_34e0_9c0ddc060f5d["CompositeByteBuf()"] e9920c4e_d91d_be1d_34e0_9c0ddc060f5d -->|calls| 59bfffdc_1653_76b9_674e_0f9e0a0ace57 8b40bcf2_a1f9_fa88_113f_04b3bb1e18c3["capacity()"] 59bfffdc_1653_76b9_674e_0f9e0a0ace57 -->|calls| 8b40bcf2_a1f9_fa88_113f_04b3bb1e18c3 style 59bfffdc_1653_76b9_674e_0f9e0a0ace57 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/CompositeByteBuf.java lines 270–275
private static void checkForOverflow(int capacity, int readableBytes) {
if (capacity + readableBytes < 0) {
throw new IllegalArgumentException("Can't increase by " + readableBytes + " as capacity(" + capacity + ")" +
" would overflow " + Integer.MAX_VALUE);
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does checkForOverflow() do?
checkForOverflow() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/CompositeByteBuf.java.
Where is checkForOverflow() defined?
checkForOverflow() is defined in buffer/src/main/java/io/netty/buffer/CompositeByteBuf.java at line 270.
What does checkForOverflow() call?
checkForOverflow() calls 1 function(s): capacity.
What calls checkForOverflow()?
checkForOverflow() is called by 2 function(s): CompositeByteBuf, addComponent0.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free