pub fn validate(src: &[u8]) -> Result<usize>Expand description
Checks that the compressed buffer may contain valid blosc compressed data. On success, returns the size that the uncompressed data would have.
let data: Vec<u16> = vec![1, 2, 3, 65535];
let ctx = Context::new();
let compressed = ctx.compress(&data[..]);
assert_eq!(Ok(8), validate(compressed.as_ref()));