Function mrpt::io::zip::decompress_gz_data_block

Function Documentation

bool mrpt::io::zip::decompress_gz_data_block(const std::vector<uint8_t> &in_gz_data, std::vector<uint8_t> &out_data)

Decompress an array of bytes storing a gz-compressed stream of data into a memory buffer. If the input data is not recognized as a .gz file, the output data will be an exact copy of the input.

Returns:

true on success, false on error.