ae.utils.gzip

ae.utils.gzip

Members

Enums

ZlibMode (from ae.utils.zlib)
enum ZlibMode via public import ae.utils.zlib : ZlibOptions, ZlibMode;

File format.

Functions

compress
DataVec compress(Data[] data, ZlibOptions options)

Compress data to Gzip.

compress
Data compress(Data input)
Undocumented in source. Be warned that the author may not have intended to support it.
crc32
uint crc32(R data)

Calculate CRC32 from Data[]

deflate2gzip
DataVec deflate2gzip(Data[] compressed, uint dataCrc, size_t dataLength)

Add a Gzip header to deflated data.

gzipToRawDeflate
DataVec gzipToRawDeflate(Data[] data)

Strip the Gzip header from data.

uncompress
DataVec uncompress(Data[] data)

Uncompress Gzip-compressed data.

uncompress
Data uncompress(Data input)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

ZlibOptions (from ae.utils.zlib)
struct ZlibOptions via public import ae.utils.zlib : ZlibOptions, ZlibMode;

Compression/decompression options.

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Authors

Vladimir Panteleev <ae@cy.md> Simon Arlott