Function snap::max_compress_len [] [src]

pub fn max_compress_len(input_len: usize) -> usize

Returns the maximum compressed size given the uncompressed size.

If the uncompressed size exceeds the maximum allowable size then this returns 0.