validate_count

Function validate_count 

Source
fn validate_count(
    count: u64,
    max: usize,
    remaining_bytes: usize,
    item_name: &str,
) -> Result<usize>
Expand description

Validate that a count is within limits and reasonable for the remaining bytes