capped_container_size

Function capped_container_size 

Source
pub fn capped_container_size(raw: usize) -> usize
Expand description

Caps a raw container size at MAX_CONTAINER_PREALLOC.

Implementations of ShapeDeserializer::container_size SHOULD use this when returning a size derived from untrusted input (e.g., a CBOR length header).