fn
fn gzip_decode(input: string, in_len: int, out_len: *int) -> *void
Decompress a gzip-wrapped or zlib-wrapped buffer.
Returns the decoded bytes as a *void buffer plus the byte count through out_len. On any decode error the buffer is null and out_len is zero. Caller is responsible for freeing the buffer (or wrapping it via __glide_string_from_buf and letting the GC take ownership).
let mut out_len: int = 0;
let buf: *void = gzip_decode(payload, payload.len(), &out_len);
if buf != null {
let decoded: string = __glide_string_from_buf(buf, out_len);
free(buf);
}