Function h3o_zip::decompress
source · pub fn decompress(
bytes: &[u8]
) -> impl Iterator<Item = Result<CellIndex, DecodingError>> + '_
Expand description
Decompress the bytes into a stream of sorted cell indexes.
§Errors
Returns a DecodingError
if the compressed payload cannot be decoded.
§Examples
let bytes = [
0x01, 0x1b, 0x05, 0x03, 0x41, 0x21, 0x05, 0x05, 0x09, 0x05, 0xff, 0x11,
0x81, 0x06, 0x02, 0x05, 0x0d, 0x28, 0x88, 0x10, 0x54, 0x20, 0x24, 0x50,
0x41, 0x81, 0x00
];
let cells = h3o_zip::decompress(bytes.as_slice())
.collect::<Result<Vec<_>, _>>()?;