|
Greenbone Vulnerability Management Libraries 22.32.0
|
API related to data compression (gzip format.). More...
#include <stdio.h>

Go to the source code of this file.
Functions | |
| void * | gvm_compress (const void *, unsigned long, unsigned long *) |
| Compresses data in src buffer. | |
| void * | gvm_compress_gzipheader (const void *, unsigned long, unsigned long *) |
| Compresses data in src buffer, gzip format compatible. | |
| void * | gvm_uncompress (const void *, unsigned long, unsigned long *) |
| Uncompresses data in src buffer. | |
| FILE * | gvm_gzip_open_file_reader (const char *) |
| Opens a gzip file as a FILE* stream for reading and decompression. | |
| FILE * | gvm_gzip_open_file_reader_fd (int) |
| Opens a gzip file as a FILE* stream for reading and decompression. | |
API related to data compression (gzip format.).
Definition in file compressutils.h.
| void * gvm_compress | ( | const void * | src, |
| unsigned long | srclen, | ||
| unsigned long * | dstlen ) |
Compresses data in src buffer.
| [in] | src | Buffer of data to compress. |
| [in] | srclen | Length of data to compress. |
| [out] | dstlen | Length of compressed data. |
Definition at line 42 of file compressutils.c.
Referenced by Ensure().

| void * gvm_compress_gzipheader | ( | const void * | src, |
| unsigned long | srclen, | ||
| unsigned long * | dstlen ) |
Compresses data in src buffer, gzip format compatible.
| [in] | src | Buffer of data to compress. |
| [in] | srclen | Length of data to compress. |
| [out] | dstlen | Length of compressed data. |
Definition at line 182 of file compressutils.c.
Referenced by Ensure(), Ensure(), and Ensure().

| FILE * gvm_gzip_open_file_reader | ( | const char * | path | ) |
Opens a gzip file as a FILE* stream for reading and decompression.
| [in] | path | Path to the gzip file to open. |
Definition at line 287 of file compressutils.c.
References gz_file_close(), and gz_file_read().
Referenced by Ensure().


| FILE * gvm_gzip_open_file_reader_fd | ( | int | fd | ) |
Opens a gzip file as a FILE* stream for reading and decompression.
| [in] | fd | File descriptor of the gzip file to open. |
Definition at line 319 of file compressutils.c.
References gz_file_close(), and gz_file_read().
Referenced by Ensure().


| void * gvm_uncompress | ( | const void * | src, |
| unsigned long | srclen, | ||
| unsigned long * | dstlen ) |
Uncompresses data in src buffer.
| [in] | src | Buffer of data to uncompress. |
| [in] | srclen | Length of data to uncompress. |
| [out] | dstlen | Length of uncompressed data. |
Definition at line 111 of file compressutils.c.
Referenced by Ensure(), and Ensure().
