0 branches
Tree
Top files
Clone with HTTPS:
README.md
doc: update trim_doc_node_description, make module readmes more uniform (#20792)
2 years ago
368 bytes
zlib.v
compress.deflate,compress.gzip,compress.zlib,compress.zstd: fix `v doc -unsafe-run-examples -f none vlib/compress/` too
last Aug 13
763 bytes
zlib_miniz_compat_names_collision.h
compress: fix compilation fails because of multiple includes of same .h (fixes #18378)
last Feb 26
260 bytes
Description
compress.zlib is a module that assists in the compression and
decompression of binary data using zlib compression
Examples
import compress.zlib
fn main() {
uncompressed := 'Hello world!'
compressed := zlib.compress(uncompressed.bytes())!
decompressed := zlib.decompress(compressed)!
assert decompressed == uncompressed.bytes()
}