v/vlib/compress/gzip
ChAoS_UnItY 65066098d8
compress: Add gzip module & refactor compress & compress.zlib module (#14599)
2022-06-03 09:00:11 +03:00
..
README.md compress: Add gzip module & refactor compress & compress.zlib module (#14599) 2022-06-03 09:00:11 +03:00
gzip.v compress: Add gzip module & refactor compress & compress.zlib module (#14599) 2022-06-03 09:00:11 +03:00
gzip_test.v compress: Add gzip module & refactor compress & compress.zlib module (#14599) 2022-06-03 09:00:11 +03:00

README.md

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()
}