Skip to main content

derive_max_path_bytes

Function derive_max_path_bytes 

Source
pub fn derive_max_path_bytes(
    remaining_ms: u32,
    serialization_rate_bytes_per_ms: u64,
) -> usize
Expand description

Runtime derivation: max_path_bytes_total = remaining_ms * serialization_rate_bytes_per_ms, saturating on overflow.

Exposed at the crate root (see lib.rs) so integration tests can exercise the invariant directly.