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
int deflateInit2(z_streamp strm,
int level,
int method,
int windowBits,
int memLevel,
int strategy) nothrow @nogc extern(C)fn
int deflateSetDictionary(z_streamp strm, const(ubyte) * dictionary, uint dictLength) nothrow @nogc extern(C)fn
int deflateGetDictionary(z_streamp strm, ubyte * dictionary, uint dictLength) nothrow @nogc extern(C)fn
int deflateTune(z_streamp strm, int good_length, int max_lazy, int nice_length,
int max_chain) nothrow @nogc extern(C)fn
int inflateSetDictionary(z_streamp strm, const(ubyte) * dictionary, uint dictLength) nothrow @nogc extern(C)fn
int inflateGetDictionary(z_streamp strm, ubyte * dictionary, uint * dictLength) nothrow @nogc extern(C)fn
int inflateBack(z_stream * strm,
in_func f_in,
void * in_desc,
out_func f_out,
void * out_desc) nothrow @nogc extern(C)fn
int compress(ubyte * dest,
size_t * destLen,
const(ubyte) * source,
size_t sourceLen) nothrow @nogc extern(C)fn
int compress2(ubyte * dest,
size_t * destLen,
const(ubyte) * source,
size_t sourceLen,
int level) nothrow @nogc extern(C)fn
int uncompress(ubyte * dest,
size_t * destLen,
const(ubyte) * source,
size_t sourceLen) nothrow @nogc extern(C)fn
int uncompress2(ubyte * dest,
size_t * destLen,
const(ubyte) * source,
size_t * sourceLen) nothrow @nogc extern(C)fn
z_size_t gzfwrite(void * buf, z_size_t size, z_size_t nitems, gzFile file) nothrow @nogc extern(C)fn
int deflateInit_(z_streamp strm,
int level,
const(char) * versionx,
int stream_size) nothrow @nogc extern(C)fn
int deflateInit2_(z_streamp strm,
int level,
int method,
int windowBits,
int memLevel,
int strategy,
const(char) * versionx,
int stream_size) nothrow @nogc extern(C)fn
int inflateBackInit_(z_stream * strm,
int windowBits,
ubyte * window,
const(char) * z_version,
int stream_size) nothrow @nogc extern(C)fn
int inflateInit2_(z_streamp strm,
int windowBits,
const(char) * versionx,
int stream_size) nothrow @nogc extern(C)Variables 3
var
string ZLIB_VERSION = "1.3.1"var
ZLIB_VERNUM = 0x1310var
void * Z_NULL = nullfor initializing zalloc, zfree, opaque (extern(D) for mangling)