Copyright
Copyright The D Language Foundation 2000 - 2011.
the header format the compressed stream is wrapped in
Used when the data to be compressed is not all in one buffer.
z_stream zsint levelint initedbool gzipvoid error(int err)const(void)[] compress(const(void)[] buf)Compress the data in buf and return the compressed data. Params: buf = data to compressvoid[] flush(int mode = Z_FINISH) Compress and return any remaining data. The returned data should be appended to that returned by compress(). Params: mode = one of the following: * Z_SYNC_FLUSH Syncs up flushing to t...this(int level, HeaderFormat header = HeaderFormat.deflate)Constructor.this(HeaderFormat header = HeaderFormat.deflate)dittoUsed when the data to be decompressed is not all in one buffer.
void error(int err)const(void)[] uncompress(const(void)[] buf)Decompress the data in buf and return the decompressed data. The buffers returned from successive calls to this should be concatenated together.void[] flush()Decompress and return any remaining data. The returned data should be appended to that returned by uncompress(). The UnCompress object cannot be used further.bool empty() @property constReturns true if all input data has been decompressed and no further data can be decompressed (inflate() returned Z_STREAM_END)this(uint destbufsize)Construct. destbufsize is the same as for D.zlib.uncompress().this(HeaderFormat format = HeaderFormat.determineFromData)dittouint adler32(uint adler, const(void)[] buf)Compute the Adler-32 checksum of a buffer's worth of data.void[] uncompress(const(void)[] srcbuf, size_t destlen = 0u, int winbits = 15)Decompresses the data in srcbuf[]. Params: srcbuf = buffer containing the compressed data. destlen = size of the uncompressed data. It need not be accurate, but the decompression will be faster if...