Function sp_maybe_compressed_blob::decompress [−][src]
pub fn decompress(
blob: &[u8],
bomb_limit: usize
) -> Result<Cow<'_, [u8]>, Error>
Expand description
Decode a blob, if it indicates that it is compressed. Provide a bomb_limit
, which
is the limit of bytes which should be decompressed from the blob.