v/vlib/compress/deflate
2024-09-10 11:25:56 +03:00
..
deflate.v vlib/compress: correct comments in compress module (#18434) 2023-06-13 19:10:27 +03:00
deflate_test.v fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
README.md doc: update trim_doc_node_description, make module readmes more uniform (#20792) 2024-02-12 12:38:47 +02:00

Description

compress.deflate is a module that assists in the compression and decompression of binary data using deflate compression

Example

import compress.deflate

fn main() {
	uncompressed := 'Hello world!'
	compressed := deflate.compress(uncompressed.bytes())!
	decompressed := deflate.decompress(compressed)!
	assert decompressed == uncompressed.bytes()
}