1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/compress/zlib
2022-01-05 18:06:08 +02:00
..
README.md docs: adding skeleton README.md files for all vlib modules (#13034) 2022-01-05 18:06:08 +02:00
zlib_test.v compress: add a new compress.zlib module (#12646) 2021-12-02 12:01:44 +02:00
zlib.v compress: add a new compress.zlib module (#12646) 2021-12-02 12:01:44 +02:00

Description:

compress.zlib implements zlib compression and decompression of binary data.

Examples:

import compress.zlib

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