etc.c.zlib
fn adler32 adler32_combine adler32_z compress compress2 compressBound crc32 crc32_combine crc32_combine_gen crc32_combine_op crc32_z deflate deflateBound deflateCopy deflateEnd deflateGetDictionary deflateInit deflateInit2 deflateInit2_ deflateInit_ deflateParams deflatePending deflatePrime deflateReset deflateSetDictionary deflateSetHeader deflateTune get_crc_table gzbuffer gzclearerr gzclose gzclose_r gzclose_w gzdirect gzdopen gzeof gzerror gzflush gzfread gzfwrite gzgetc gzgets gzoffset gzopen gzprintf gzputc gzputs gzread gzrewind gzseek gzsetparams gztell gzungetc gzwrite inflate inflateBack inflateBackEnd inflateBackInit inflateBackInit_ inflateCopy inflateEnd inflateGetDictionary inflateGetHeader inflateInit inflateInit2 inflateInit2_ inflateInit_ inflateMark inflatePrime inflateReset inflateReset2 inflateSetDictionary inflateSync inflateSyncPoint uncompress uncompress2 zError zlibCompileFlags zlibVersion
Types 11
aliasalloc_func = void * function (void * opaque, uint items, uint size)
aliasfree_func = void function (void * opaque, void * address)
structz_stream
Fields
const(ubyte) * next_inuint avail_inc_ulong total_inubyte * next_outuint avail_outc_ulong total_outconst(char) * msgvoid * statealloc_func zallocfree_func zfreevoid * opaqueint data_typec_ulong adlerc_ulong reservedaliasz_streamp = z_stream *
structgz_header
Fields
int textc_ulong timeint xflagsint osbyte *extra extrauint extra_lenuint extra_maxbyte * nameuint name_maxbyte * commentuint comm_maxint hcrcint donealiasgz_headerp = gz_header *
aliasin_func = uint function(void *, ubyte * *)
aliasout_func = int function(void *, ubyte *, uint)
aliasgzFile = void *
aliasz_off_t = int
aliasz_size_t = size_t
Functions 79
fn
const(char) * zlibVersion()fn
int deflateInit(z_streamp strm, int level)fn
int deflate(z_streamp strm, int flush)fn
int deflateEnd(z_streamp strm)fn
int inflateInit(z_streamp strm)fn
int inflate(z_streamp strm, int flush)fn
int inflateEnd(z_streamp strm)fn
int deflateInit2(z_streamp strm,
int level,
int method,
int windowBits,
int memLevel,
int strategy)fn
int deflateSetDictionary(z_streamp strm, const(ubyte) * dictionary, uint dictLength)fn
int deflateGetDictionary(z_streamp strm, ubyte * dictionary, uint dictLength)fn
int deflateCopy(z_streamp dest, z_streamp source)fn
int deflateReset(z_streamp strm)fn
int deflateParams(z_streamp strm, int level, int strategy)fn
int deflateTune(z_streamp strm, int good_length, int max_lazy, int nice_length,
int max_chain)fn
size_t deflateBound(z_streamp strm, size_t sourceLen)fn
int deflatePending(z_streamp strm, uint * pending, int * bits)fn
int deflatePrime(z_streamp strm, int bits, int value)fn
int deflateSetHeader(z_streamp strm, gz_headerp head)fn
int inflateInit2(z_streamp strm, int windowBits)fn
int inflateSetDictionary(z_streamp strm, const(ubyte) * dictionary, uint dictLength)fn
int inflateGetDictionary(z_streamp strm, ubyte * dictionary, uint * dictLength)fn
int inflateSync(z_streamp strm)fn
int inflateCopy(z_streamp dest, z_streamp source)fn
int inflateReset(z_streamp strm)fn
int inflateReset2(z_streamp strm, int windowBits)fn
int inflatePrime(z_streamp strm, int bits, int value)fn
c_long inflateMark(z_streamp strm)fn
int inflateGetHeader(z_streamp strm, gz_headerp head)fn
int inflateBackInit(z_stream * strm, int windowBits, ubyte * window)fn
int inflateBack(z_stream * strm,
in_func f_in,
void * in_desc,
out_func f_out,
void * out_desc)fn
int inflateBackEnd(z_stream * strm)fn
uint zlibCompileFlags()fn
int compress(ubyte * dest,
size_t * destLen,
const(ubyte) * source,
size_t sourceLen)fn
int compress2(ubyte * dest,
size_t * destLen,
const(ubyte) * source,
size_t sourceLen,
int level)fn
size_t compressBound(size_t sourceLen)fn
int uncompress(ubyte * dest,
size_t * destLen,
const(ubyte) * source,
size_t sourceLen)fn
int uncompress2(ubyte * dest,
size_t * destLen,
const(ubyte) * source,
size_t * sourceLen)fn
gzFile gzopen(const(char) * path, const(char) * mode)fn
gzFile gzdopen(int fd, const(char) * mode)fn
int gzbuffer(gzFile file, uint size)fn
int gzsetparams(gzFile file, int level, int strategy)fn
int gzread(gzFile file, void * buf, uint len)fn
z_size_t gzfread(void * buf, z_size_t size, z_size_t nitems, gzFile file)fn
int gzwrite(gzFile file, void * buf, uint len)fn
z_size_t gzfwrite(void * buf, z_size_t size, z_size_t nitems, gzFile file)fn
int gzprintf(gzFile file, const(char) * format, ...)fn
int gzputs(gzFile file, const(char) * s)fn
const(char) * gzgets(gzFile file, const(char) * buf, int len)fn
int gzputc(gzFile file, int c)fn
int gzgetc(gzFile file)fn
int gzungetc(int c, gzFile file)fn
int gzflush(gzFile file, int flush)fn
z_off_t gzseek(gzFile file, z_off_t offset, int whence)fn
int gzrewind(gzFile file)fn
z_off_t gztell(gzFile file)fn
z_off_t gzoffset(gzFile file)fn
int gzeof(gzFile file)fn
int gzdirect(gzFile file)fn
int gzclose(gzFile file)fn
int gzclose_r(gzFile file)fn
int gzclose_w(gzFile file)fn
const(char) * gzerror(gzFile file, int * errnum)fn
void gzclearerr(gzFile file)fn
uint adler32(uint adler, const(ubyte) * buf, uint len)fn
uint adler32_z(uint adler, const(ubyte) * buf, z_size_t len)fn
uint adler32_combine(uint adler1, uint adler2, z_off_t len2)fn
uint crc32(uint crc, const(ubyte) * buf, uint len)fn
uint crc32_z(uint crc, const(ubyte) * buf, z_size_t len)fn
uint crc32_combine(uint crc1, uint crc2, z_off_t len2)fn
uint crc32_combine_gen(z_off_t len2)fn
uint crc32_combine_op(uint crc1, uint crc2, uint op)fn
int deflateInit_(z_streamp strm,
int level,
const(char) * versionx,
int stream_size)fn
int inflateInit_(z_streamp strm,
const(char) * versionx,
int stream_size)fn
int deflateInit2_(z_streamp strm,
int level,
int method,
int windowBits,
int memLevel,
int strategy,
const(char) * versionx,
int stream_size)fn
int inflateBackInit_(z_stream * strm,
int windowBits,
ubyte * window,
const(char) * z_version,
int stream_size)fn
int inflateInit2_(z_streamp strm,
int windowBits,
const(char) * versionx,
int stream_size)fn
const(char) * zError(int err)fn
int inflateSyncPoint(z_streamp z)fn
const(uint) * get_crc_table()Variables 3
var
string ZLIB_VERSIONvar
0x1310 ZLIB_VERNUMvar
void * Z_NULLfor initializing zalloc, zfree, opaque (extern(D) for mangling)