View source code Display the source code in std/zlib.d from which this page was generated on github. Improve this page Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone. Page wiki View or edit the community-maintained wiki page associated with this page.

Module std.zlib

Compress/decompress data using the zlib library.

References

Wikipedia

Functions

Name Description
adler32

Compute the Adler-32 checksum of a buffer's worth of data.

compress

Compress data

crc32

Compute the CRC32 checksum of a buffer's worth of data.

uncompress Decompresses the data in srcbuf[].

Classes

Name Description
Compress Used when the data to be compressed is not all in one buffer.
UnCompress Used when the data to be decompressed is not all in one buffer.
ZlibException Errors throw a ZlibException.

Enums

Name Description
HeaderFormat the header format the compressed stream is wrapped in

Authors

Walter Bright

License

Boost License 1.0.

Comments