v/vlib/compress/deflate
2022-10-20 22:14:33 +03:00
..
deflate.v all: change optional to result in most of the libraries (#16123) 2022-10-20 22:14:33 +03:00
deflate_test.v all: change optional to result in most of the libraries (#16123) 2022-10-20 22:14:33 +03:00
README.md all: change optional to result in most of the libraries (#16123) 2022-10-20 22:14:33 +03:00

Description:

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

Examples:

import compress.deflate

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