Skip to main content

encoded_len

Function encoded_len 

Source
pub fn encoded_len(
    quarter_stream_id: u64,
    context_id: u64,
    payload_len: usize,
) -> usize
Expand description

The number of bytes encode will produce.

Used to decide whether a packet fits in a QUIC datagram before copying it.