v/vlib/compress/gzip
2024-04-12 13:53:02 +03:00
..
samples compress.gzip: change the endianness for validation to conform to the gzip file specification (fix #19839) (#19849) 2023-11-12 11:30:05 +02:00
gzip.v breaking,checker: disallow initializing private struct fields outside structs module (#21183) 2024-04-12 13:53:02 +03:00
gzip_test.v compress.gzip: change the endianness for validation to conform to the gzip file specification (fix #19839) (#19849) 2023-11-12 11:30:05 +02:00
read_gz_files_test.v doc: update trim_doc_node_description, make module readmes more uniform (#20792) 2024-02-12 12:38:47 +02: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.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()
}