std1.0.0-beta-7 SafeC docs

std :: encoding::deflate

Function std::zlib_decompress

#include <std/encoding/deflate.h> source ยท definition

struct Vec<unsigned char> zlib_decompress(
    []const unsigned char data,
    unsigned long max_out,
    ?&int ok,
)

Checks the header and the Adler-32; *ok = 0 on any mismatch (a preset dictionary, FDICT, is not supported).