The OpenD Programming Language

gamut.codecs.miniz

Undocumented in source.

Members

Functions

mz_compress
int mz_compress(ubyte* pDest, mz_ulong* pDest_len, const(ubyte)* pSource, mz_ulong source_len)

Single-call compression functions mz_compress() and mz_compress2(): Returns MZ_OK on success, or one of the error codes from mz_deflate() on failure.

mz_compress2
int mz_compress2(ubyte* pDest, mz_ulong* pDest_len, const(ubyte)* pSource, mz_ulong source_len, int level)

Single-call compression functions mz_compress() and mz_compress2(): Returns MZ_OK on success, or one of the error codes from mz_deflate() on failure.

mz_uncompress3
int mz_uncompress3(ubyte* pDest, mz_ulong* pDest_len, const(ubyte)* pSource, mz_ulong* pSource_len, int window_bits, bool trusted_input)

Same, but also specify window_bits, in case the stream has no header. This is useful for iPhone PNG. Also allows to skip Adler32 check.

Meta