Signature
String gz_uncompress(String compressed)
Parameters
compressed : gzip-format compressed bytes
return value : uncompressed bytes
Uncompresses a gzip-format byte string and returns the original content.
gz_uncompress() validates the gzip header, CRC32 footer, and uncompressed-size footer. It throws a runtime error when the input is not a supported gzip stream or fails validation.
Example
String packed = gz_compress("round trip data");
print(gz_uncompress(packed), "\n");
Output
round trip data