Skip to main content

at_least_items

Function at_least_items 

Source
pub fn at_least_items<B: Buf>(
    buf: &mut B,
    len: usize,
    item_size: usize,
) -> Result<(), Error>
Expand description

Checks if the buffer has at least len * item_size bytes remaining, treating multiplication overflow as insufficient. Returns an Error::EndOfBuffer if not.