use Read;
use crate;
/// The default upper bound for a decompressed payload: 64 MiB.
pub const DEFAULT_MAX_DECODED_LEN: usize = 64 * 1024 * 1024;
/// Read a decompressing reader to its end, failing once the output exceeds
/// `max` bytes so a small payload cannot expand without bound.
pub