|
Greenbone Vulnerability Management Libraries 22.20.0
|
Functions related to data compression (gzip format.) More...
Macros | |
| #define | ZLIB_CONST |
| For z_const to be defined as const. More... | |
| #define | _GNU_SOURCE |
| #define | G_LOG_DOMAIN "libgvm util" |
| GLib logging domain. More... | |
Functions | |
| void * | gvm_compress (const void *src, unsigned long srclen, unsigned long *dstlen) |
| Compresses data in src buffer. More... | |
| void * | gvm_uncompress (const void *src, unsigned long srclen, unsigned long *dstlen) |
| Uncompresses data in src buffer. More... | |
| void * | gvm_compress_gzipheader (const void *src, unsigned long srclen, unsigned long *dstlen) |
| Compresses data in src buffer, gzip format compatible. More... | |
| static ssize_t | gz_file_read (void *cookie, char *buffer, size_t buffer_size) |
| Read decompressed data from a gzip file. More... | |
| static int | gz_file_close (void *cookie) |
| Close a gzip file. More... | |
| FILE * | gvm_gzip_open_file_reader (const char *path) |
| Opens a gzip file as a FILE* stream for reading and decompression. More... | |
| FILE * | gvm_gzip_open_file_reader_fd (int fd) |
| Opens a gzip file as a FILE* stream for reading and decompression. More... | |
Functions related to data compression (gzip format.)
| #define _GNU_SOURCE |
| #define G_LOG_DOMAIN "libgvm util" |
GLib logging domain.
| #define ZLIB_CONST |
For z_const to be defined as const.
| 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. |
| 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. |
| 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. |
| 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. |
| 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. |
|
static |
Close a gzip file.
| [in] | cookie | The gzFile to close. |
|
static |
Read decompressed data from a gzip file.
| [in] | cookie | The gzFile to read from. |
| [in] | buffer | The buffer to output decompressed data to. |
| [in] | buffer_size | The size of the buffer. |