API related to data compression (gzip format.)
More...
Go to the source code of this file.
|
| void * | gvm_compress (const void *, unsigned long, unsigned long *) |
| | Compresses data in src buffer. More...
|
| |
| void * | gvm_compress_gzipheader (const void *, unsigned long, unsigned long *) |
| | Compresses data in src buffer, gzip format compatible. More...
|
| |
| void * | gvm_uncompress (const void *, unsigned long, unsigned long *) |
| | Uncompresses data in src buffer. More...
|
| |
API related to data compression (gzip format.)
◆ gvm_compress()
| void * gvm_compress |
( |
const void * |
src, |
|
|
unsigned long |
srclen, |
|
|
unsigned long * |
dstlen |
|
) |
| |
Compresses data in src buffer.
- Parameters
-
| [in] | src | Buffer of data to compress. |
| [in] | srclen | Length of data to compress. |
| [out] | dstlen | Length of compressed data. |
- Returns
- Pointer to compressed data if success, NULL otherwise.
◆ gvm_compress_gzipheader()
| void * gvm_compress_gzipheader |
( |
const void * |
src, |
|
|
unsigned long |
srclen, |
|
|
unsigned long * |
dstlen |
|
) |
| |
Compresses data in src buffer, gzip format compatible.
- Parameters
-
| [in] | src | Buffer of data to compress. |
| [in] | srclen | Length of data to compress. |
| [out] | dstlen | Length of compressed data. |
- Returns
- Pointer to compressed data if success, NULL otherwise.
◆ gvm_uncompress()
| void * gvm_uncompress |
( |
const void * |
src, |
|
|
unsigned long |
srclen, |
|
|
unsigned long * |
dstlen |
|
) |
| |
Uncompresses data in src buffer.
- Parameters
-
| [in] | src | Buffer of data to uncompress. |
| [in] | srclen | Length of data to uncompress. |
| [out] | dstlen | Length of uncompressed data. |
- Returns
- Pointer to uncompressed data if success, NULL otherwise.