compressutils.h
Go to the documentation of this file.
/* SPDX-FileCopyrightText: 2013-2023 Greenbone AG
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef _GVM_UTIL_COMPRESSUTILS_H
#define _GVM_UTIL_COMPRESSUTILS_H
#include <stdio.h>
void *
gvm_compress (const void *, unsigned long, unsigned long *);
void *
gvm_compress_gzipheader (const void *, unsigned long, unsigned long *);
void *
gvm_uncompress (const void *, unsigned long, unsigned long *);
FILE *
gvm_gzip_open_file_reader (const char *);
FILE *
gvm_gzip_open_file_reader_fd (int);
#endif /* not _GVM_UTIL_COMPRESSUTILS_H */
gvm_gzip_open_file_reader_fd
FILE * gvm_gzip_open_file_reader_fd(int)
Opens a gzip file as a FILE* stream for reading and decompression.
Definition compressutils.c:319
gvm_compress
void * gvm_compress(const void *, unsigned long, unsigned long *)
Compresses data in src buffer.
Definition compressutils.c:42
gvm_uncompress
void * gvm_uncompress(const void *, unsigned long, unsigned long *)
Uncompresses data in src buffer.
Definition compressutils.c:111
gvm_gzip_open_file_reader
FILE * gvm_gzip_open_file_reader(const char *)
Opens a gzip file as a FILE* stream for reading and decompression.
Definition compressutils.c:287
gvm_compress_gzipheader
void * gvm_compress_gzipheader(const void *, unsigned long, unsigned long *)
Compresses data in src buffer, gzip format compatible.
Definition compressutils.c:182