std1.0.0-beta-7 SafeC docs

std :: encoding::deflate

Function std::inflate_raw

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

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

Decompresses a raw DEFLATE stream. *ok = 0 on a malformed or truncated stream or when the output would exceed max_out (0 = no limit). Bytes after the final block are ignored; *consumed (if non-null) receives how many input bytes the stream used.