Skip to main content

validate_collection_count

Function validate_collection_count 

Source
pub fn validate_collection_count(
    count: u32,
    label: &str,
) -> Result<(), FormatError>
Expand description

Validates that a deserialized collection count is within bounds. Returns InvalidData if the count exceeds MAX_COLLECTION_COUNT.