Function client_hello_message_size
pub fn client_hello_message_size(
prefix: &[u8],
max_size: usize,
) -> Result<Option<usize>, ClientHelloMessageError>Available on crate feature
tls only.Expand description
Inspect a contiguous TLS handshake header without allocating or needing its body.
Returns the total message size, including the four-byte header, or None if
the header is incomplete. TLS records and QUIC CRYPTO assembly both use this
check after making their first handshake bytes contiguous. The caller supplies
its byte budget and decides how to retain or replay transport data.