pub fn max_compress_len(input_len: usize) -> usize {
    let input_len = input_len as u64;
    if input_len > MAX_INPUT_SIZE {
        return 0;
    }
    let max = 32 + input_len + (input_len / 6);
    if max > MAX_INPUT_SIZE {
        0
    } else {
        max as usize
    }
}
Returns the maximum compressed size given the uncompressed size.

If the uncompressed size exceeds the maximum allowable size then this
returns 0.
src/compress.rs