cCompress
Returns gzip-compressed bytes using the best-compression setting. The result is binary data held in a cstr and can contain NUL bytes.
Data & serialization
Compress and decompress complete byte strings using gzip.
#include <mc/compress.h>The returned cstr may contain embedded NUL bytes. Preserve its length when storing or transmitting it.
Returns gzip-compressed bytes using the best-compression setting. The result is binary data held in a cstr and can contain NUL bytes.
Expands gzip data into its original bytes. Invalid or incomplete compressed data can raise an exception from the compression library.