Decompresses a complete protocol payload, rejecting trailing bytes. Gzip members are concatenated in order and share one aggregate decompressed-output limit. Every checksum must pass before any output is returned; release success with free.
Signature
inflate_complete :: (
data: [] u8,
container := Deflate_Container.ZLIB,
max_output: s64 = DEFAULT_MAX_OUTPUT
) -> (output: [] u8, ok: bool, error: string)
packed := deflate(cast([] u8) "hello", .GZIP);
output, ok := inflate_complete(packed, .GZIP, 1024);
assert(ok && cast(string) output == "hello");
free(output.data);
free(packed.data);