pub fn max_allocation_bytes(num_bytes: usize) -> usize๐Deprecated since 0.21.0: Please use apache_avro::util::max_allocation_bytes
Expand description
Set the maximum number of bytes that can be allocated when decoding data.
This function only changes the setting once. On subsequent calls the value will stay the same
as the first time it is called. It is automatically called on first allocation and defaults to
util::DEFAULT_MAX_ALLOCATION_BYTES.
ยงReturns
The configured maximum, which might be different from what the function was called with if the value was already set before.