Compress a file using gzip. Options: map(.overwrite true, .level int|string). Level aliases: "default", "none"/"no", "fast"/"speed", "best", "huffman".
Example:
# Example for gzip_compress
write_file("/tmp/za_gzip.txt", "hello")
gzip_compress("/tmp/za_gzip.txt", "/tmp/za_gzip.gz")
Compress a byte array using gzip. Options: map(.level int|string). Level aliases: "default", "none"/"no", "fast"/"speed", "best", "huffman".
Example:
# Example for gzip_compress_bytes
data = hex_decode("48656c6c6f")
gzip_compress_bytes(data)
Decompress a gzip file. Options: map(.overwrite true).
Example:
# Example for gzip_decompress
write_file("/tmp/test.txt", "hello")
gzip_compress("/tmp/test.txt", "/tmp/test.txt.gz")
gzip_decompress("/tmp/test.txt.gz", "/tmp/test2.txt")
Decompress a gzip-compressed byte array.
Example:
# Example for gzip_decompress_bytes
data = hex_decode("48656c6c6f")
comp = gzip_compress_bytes(data)
println gzip_decompress_bytes(comp)