g4tools  5.4.0
Namespaces | Macros | Functions
zlib File Reference
#include <zlib.h>
#include <ostream>
#include <cstdio>
Include dependency graph for zlib:

Go to the source code of this file.

Namespaces

 tools
 inlined C code : ///////////////////////////////////
 

Macros

#define tools_zlib
 
#define TOOLS_ZLIB_HEAD_CRC   0x02 /* bit 1 set: header CRC present */
 
#define TOOLS_ZLIB_EXTRA_FIELD   0x04 /* bit 2 set: extra field present */
 
#define TOOLS_ZLIB_ORIG_NAME   0x08 /* bit 3 set: original file name present */
 
#define TOOLS_ZLIB_COMMENT   0x10 /* bit 4 set: file comment present */
 
#define TOOLS_ZLIB_RESERVED   0xE0 /* bits 5..7: reserved */
 

Functions

bool tools::compress_buffer (std::ostream &a_out, unsigned int a_level, unsigned int a_srcsize, const char *a_src, unsigned int a_tgtsize, char *a_tgt, unsigned int &a_irep)
 
bool tools::decompress_buffer (std::ostream &a_out, unsigned int a_srcsize, const char *a_src, unsigned int a_tgtsize, char *a_tgt, unsigned int &a_irep)
 
int tools::gunzip_get_byte (char *&a_buffer)
 
int tools::gunzip_check_header (char *&a_buffer)
 
bool tools::gunzip_buffer (std::ostream &a_out, unsigned int a_srcsize, const char *a_src, unsigned int a_tgtsize, char *a_tgt, unsigned int &a_irep)
 

Macro Definition Documentation

◆ tools_zlib

#define tools_zlib

Definition at line 5 of file zlib.

◆ TOOLS_ZLIB_COMMENT

#define TOOLS_ZLIB_COMMENT   0x10 /* bit 4 set: file comment present */

◆ TOOLS_ZLIB_EXTRA_FIELD

#define TOOLS_ZLIB_EXTRA_FIELD   0x04 /* bit 2 set: extra field present */

◆ TOOLS_ZLIB_HEAD_CRC

#define TOOLS_ZLIB_HEAD_CRC   0x02 /* bit 1 set: header CRC present */

◆ TOOLS_ZLIB_ORIG_NAME

#define TOOLS_ZLIB_ORIG_NAME   0x08 /* bit 3 set: original file name present */

◆ TOOLS_ZLIB_RESERVED

#define TOOLS_ZLIB_RESERVED   0xE0 /* bits 5..7: reserved */