increase() — netty Function Reference
Architecture documentation for the increase() function in EpollEventArray.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 9af148c1_d81e_aba3_e0de_0026b23529ca["increase()"] db2d0c9c_9d0d_4140_7bf8_37125c131269["EpollEventArray"] 9af148c1_d81e_aba3_e0de_0026b23529ca -->|defined in| db2d0c9c_9d0d_4140_7bf8_37125c131269 c5d5b9db_208b_87a0_2625_ee8426f9e936["calculateBufferCapacity()"] 9af148c1_d81e_aba3_e0de_0026b23529ca -->|calls| c5d5b9db_208b_87a0_2625_ee8426f9e936 1ef53f22_32bb_7d3e_3732_741b90fefc4b["memoryAddress()"] 9af148c1_d81e_aba3_e0de_0026b23529ca -->|calls| 1ef53f22_32bb_7d3e_3732_741b90fefc4b style 9af148c1_d81e_aba3_e0de_0026b23529ca fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollEventArray.java lines 83–92
void increase() {
// double the size
length <<= 1;
// There is no need to preserve what was in the memory before.
CleanableDirectBuffer buffer = Buffer.allocateDirectBufferWithNativeOrder(calculateBufferCapacity(length));
cleanable.clean();
cleanable = buffer;
memory = buffer.buffer();
memoryAddress = Buffer.memoryAddress(buffer.buffer());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does increase() do?
increase() is a function in the netty codebase, defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollEventArray.java.
Where is increase() defined?
increase() is defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollEventArray.java at line 83.
What does increase() call?
increase() calls 2 function(s): calculateBufferCapacity, memoryAddress.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free