0 branches
Tree
Top files
Clone with HTTPS:
samples
compress.gzip: change the endianness for validation to conform to the gzip file specification (fix #19839) (#19849)
2 years ago
23.99 KB
README.md
doc: update trim_doc_node_description, make module readmes more uniform (#20792)
2 years ago
370 bytes
Description
compress.gzip is a module that assists in the compression and
decompression of binary data using gzip compression
Examples:
import compress.gzip
fn main() {
uncompressed := 'Hello world!'
compressed := gzip.compress(uncompressed.bytes())!
decompressed := gzip.decompress(compressed)!
assert decompressed == uncompressed.bytes()
}