1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

compress.gzip / deflate: rename gzip module into deflate module (#14682)

This commit is contained in:
ChAoS_UnItY
2022-06-05 13:48:38 +08:00
committed by GitHub
parent 4cf6abd99d
commit b000728845
5 changed files with 28 additions and 20 deletions

View File

@ -1,16 +0,0 @@
module gzip
import compress
// compresses an array of bytes using gzip and returns the compressed bytes in a new array
// Example: compressed := gzip.compress(b)?
pub fn compress(data []u8) ?[]u8 {
return compress.compress(data, 0)
}
// decompresses an array of bytes using zlib and returns the decompressed bytes in a new array
// Example: decompressed := zlib.decompress(b)?
[manualfree]
pub fn decompress(data []u8) ?[]u8 {
return compress.decompress(data, 0)
}