ZLIB
Loading...
Searching...
No Matches
compress.c File Reference

compress a memory buffer More...

#include <zlib/zlib.h>

Functions

int ZEXPORT compress2 (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen, int level)
 Compresses the source buffer into the destination buffer.
 
int ZEXPORT compress (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
 Compresses the source buffer into the destination buffer.
 
uLong ZEXPORT compressBound (uLong sourceLen)
 Returns an upper bound on the compressed size after compress() or compress2() on sourceLen bytes.
 

Detailed Description

compress a memory buffer

Copyright (C) 1995-2005, 2014, 2016 Jean-loup Gailly, Mark Adler For conditions of distribution and use, see copyright notice in zlib.h