growIfNeeded() — netty Function Reference
Architecture documentation for the growIfNeeded() function in QuicheQuicChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 91ad4e75_1871_05d1_0e83_42ab72e107e6["growIfNeeded()"] 3c534d05_bb5b_c991_5e03_7ec94e739cf7["QuicheQuicChannel"] 91ad4e75_1871_05d1_0e83_42ab72e107e6 -->|defined in| 3c534d05_bb5b_c991_5e03_7ec94e739cf7 800fad5b_da38_9e46_d584_579345b38410["handleWritableStreams()"] 800fad5b_da38_9e46_d584_579345b38410 -->|calls| 91ad4e75_1871_05d1_0e83_42ab72e107e6 4c5c4c1a_01ba_f361_2baa_f00270cfb942["recvStream()"] 4c5c4c1a_01ba_f361_2baa_f00270cfb942 -->|calls| 91ad4e75_1871_05d1_0e83_42ab72e107e6 style 91ad4e75_1871_05d1_0e83_42ab72e107e6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicheQuicChannel.java lines 237–246
private static long[] growIfNeeded(long[] array, int maxLength) {
if (maxLength > array.length) {
if (array.length == MAX_ARRAY_LEN) {
return array;
}
// Increase by 4 until we reach MAX_ARRAY_LEN
return new long[Math.min(MAX_ARRAY_LEN, array.length + 4)];
}
return array;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does growIfNeeded() do?
growIfNeeded() is a function in the netty codebase, defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicheQuicChannel.java.
Where is growIfNeeded() defined?
growIfNeeded() is defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicheQuicChannel.java at line 237.
What calls growIfNeeded()?
growIfNeeded() is called by 2 function(s): handleWritableStreams, recvStream.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free