calculateSendBufferLength() — netty Function Reference
Architecture documentation for the calculateSendBufferLength() function in QuicheQuicChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD aec1828e_f262_7e70_41b5_18066d8d1231["calculateSendBufferLength()"] 3c534d05_bb5b_c991_5e03_7ec94e739cf7["QuicheQuicChannel"] aec1828e_f262_7e70_41b5_18066d8d1231 -->|defined in| 3c534d05_bb5b_c991_5e03_7ec94e739cf7 9f9da465_f345_60be_84db_446a37063039["SendResult()"] 9f9da465_f345_60be_84db_446a37063039 -->|calls| aec1828e_f262_7e70_41b5_18066d8d1231 style aec1828e_f262_7e70_41b5_18066d8d1231 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicheQuicChannel.java lines 1409–1419
private static int calculateSendBufferLength(long connAddr, int maxDatagramSize) {
int len = Math.min(maxDatagramSize, Quiche.quiche_conn_send_quantum(connAddr));
if (len <= 0) {
// If there is no room left we just return some small number to reduce the risk of packet drop
// while still be able to attach the listener to the write future.
// We use the value of 8 because such an allocation will be cheap to serve from the
// PooledByteBufAllocator while still serve our need.
return 8;
}
return len;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does calculateSendBufferLength() do?
calculateSendBufferLength() is a function in the netty codebase, defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicheQuicChannel.java.
Where is calculateSendBufferLength() defined?
calculateSendBufferLength() is defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicheQuicChannel.java at line 1409.
What calls calculateSendBufferLength()?
calculateSendBufferLength() is called by 1 function(s): SendResult.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free