Macros | Functions | Variables
zlib/test/example.c File Reference
#include "zlib.h"
#include <stdio.h>
Include dependency graph for zlib/test/example.c:

Go to the source code of this file.

Macros

#define CHECK_ERR(err, msg)
 
#define TESTFILE   "foo.gz"
 

Functions

int main (int argc, argv)
 
void test_flush OF ((Byte *compr, uLong *comprLen))
 
void test_deflate OF ((Byte *compr, uLong comprLen))
 
void test_inflate OF ((Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen))
 
void test_gzio OF ((const char *fname, Byte *uncompr, uLong uncomprLen))
 
int main OF ((int argc, char *argv[]))
 
void test_compress (Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen)
 
void test_deflate (Byte *compr, uLong comprLen)
 
void test_dict_deflate (Byte *compr, uLong comprLen)
 
void test_dict_inflate (Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen)
 
void test_flush (Byte *compr, uLong *comprLen)
 
void test_gzio (char *fname, Byte *uncompr, uLong uncomprLen) const
 
void test_inflate (Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen)
 
void test_large_deflate (Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen)
 
void test_large_inflate (Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen)
 
void test_sync (Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen)
 

Variables

static uLong dictId
 
static const char dictionary [] = "hello"
 
static z_const char hello [] = "hello, hello!"
 
static alloc_func zalloc = (alloc_func)0
 
static free_func zfree = (free_func)0
 

Macro Definition Documentation

◆ CHECK_ERR

#define CHECK_ERR (   err,
  msg 
)
Value:
{ \
if (err != Z_OK) { \
fprintf(stderr, "%s error: %d\n", msg, err); \
exit(1); \
} \
}

Definition at line 22 of file zlib/test/example.c.

◆ TESTFILE

#define TESTFILE   "foo.gz"

Definition at line 19 of file zlib/test/example.c.

Function Documentation

◆ main()

int main ( int  argc,
argv   
)

Definition at line 544 of file zlib/test/example.c.

◆ OF() [1/5]

void test_flush OF ( (Byte *compr, uLong *comprLen)  )

◆ OF() [2/5]

void test_deflate OF ( (Byte *compr, uLong comprLen)  )

◆ OF() [3/5]

void test_inflate OF ( (Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen)  )

◆ OF() [4/5]

void test_gzio OF ( (const char *fname, Byte *uncompr, uLong uncomprLen)  )

◆ OF() [5/5]

int main OF ( (int argc, char *argv[])  )

◆ test_compress()

void test_compress ( Byte compr,
uLong  comprLen,
Byte uncompr,
uLong  uncomprLen 
)

Definition at line 88 of file zlib/test/example.c.

◆ test_deflate()

void test_deflate ( Byte compr,
uLong  comprLen 
)

Definition at line 200 of file zlib/test/example.c.

◆ test_dict_deflate()

void test_dict_deflate ( Byte compr,
uLong  comprLen 
)

Definition at line 456 of file zlib/test/example.c.

◆ test_dict_inflate()

void test_dict_inflate ( Byte compr,
uLong  comprLen,
Byte uncompr,
uLong  uncomprLen 
)

Definition at line 493 of file zlib/test/example.c.

◆ test_flush()

void test_flush ( Byte compr,
uLong comprLen 
)

Definition at line 375 of file zlib/test/example.c.

◆ test_gzio()

void test_gzio ( char *  fname,
Byte uncompr,
uLong  uncomprLen 
) const

Definition at line 114 of file zlib/test/example.c.

◆ test_inflate()

void test_inflate ( Byte compr,
uLong  comprLen,
Byte uncompr,
uLong  uncomprLen 
)

Definition at line 238 of file zlib/test/example.c.

◆ test_large_deflate()

void test_large_deflate ( Byte compr,
uLong  comprLen,
Byte uncompr,
uLong  uncomprLen 
)

Definition at line 279 of file zlib/test/example.c.

◆ test_large_inflate()

void test_large_inflate ( Byte compr,
uLong  comprLen,
Byte uncompr,
uLong  uncomprLen 
)

Definition at line 334 of file zlib/test/example.c.

◆ test_sync()

void test_sync ( Byte compr,
uLong  comprLen,
Byte uncompr,
uLong  uncomprLen 
)

Definition at line 413 of file zlib/test/example.c.

Variable Documentation

◆ dictId

uLong dictId
static

Definition at line 35 of file zlib/test/example.c.

◆ dictionary

const char dictionary[] = "hello"
static

Definition at line 34 of file zlib/test/example.c.

◆ hello

z_const char hello[] = "hello, hello!"
static

Definition at line 29 of file zlib/test/example.c.

◆ zalloc

alloc_func zalloc = (alloc_func)0
static

Definition at line 77 of file zlib/test/example.c.

◆ zfree

free_func zfree = (free_func)0
static

Definition at line 78 of file zlib/test/example.c.

error_ref_leak.err
err
Definition: error_ref_leak.py:35
python_utils.port_server.stderr
stderr
Definition: port_server.py:51
Z_OK
#define Z_OK
Definition: bloaty/third_party/zlib/zlib.h:177
msg
std::string msg
Definition: client_interceptors_end2end_test.cc:372


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:12