Function mrpt::io::zip::compress_gz_data_block

Function Documentation

bool mrpt::io::zip::compress_gz_data_block(const std::vector<uint8_t> &in_data, std::vector<uint8_t> &out_gz_data, const int compress_level = 9)

Compress a memory buffer in gz-file format and return it as a block a memory. compress_level: 0=no compression, 1=best speed, 9=maximum

See also

compress_gz_file, de

Note

If in_data is empty, an empty buffer is returned in out_gz_data and no error is reported.

Returns:

true on success, false on error.