pub fn max_allocation_bytes(num_bytes: usize) -> usize
Expand description
Set a new maximum number of bytes that can be allocated when decoding data. Once called, the limit cannot be changed.
NOTE This function must be called before decoding any data. The
library leverages std::sync::Once
to set the limit either when calling this method, or when decoding for
the first time.