Macros | Functions | Variables
zlib123/example.c File Reference
#include <stdio.h>
#include "zlib.h"
Include dependency graph for zlib123/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_compress OF ((Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen))
 
void test_gzio OF ((const char *fname, Byte *uncompr, uLong uncomprLen))
 
void test_deflate OF ((Byte *compr, uLong comprLen))
 
void test_flush OF ((Byte *compr, uLong *comprLen))
 
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

uLong dictId
 
const char dictionary [] = "hello"
 
const char hello [] = "hello, hello!"
 

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); \
} \
}
#define Z_OK
Definition: zlib.h:170

Definition at line 22 of file zlib123/example.c.

◆ TESTFILE

#define TESTFILE   "foo.gz"

Definition at line 19 of file zlib123/example.c.

Function Documentation

◆ main()

int main ( int  argc,
argv   
)

Definition at line 514 of file zlib123/example.c.

◆ OF() [1/5]

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

◆ OF() [2/5]

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

◆ OF() [3/5]

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

◆ OF() [4/5]

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

◆ 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 59 of file zlib123/example.c.

◆ test_deflate()

void test_deflate ( Byte compr,
uLong  comprLen 
)

Definition at line 169 of file zlib123/example.c.

◆ test_dict_deflate()

void test_dict_deflate ( Byte compr,
uLong  comprLen 
)

Definition at line 426 of file zlib123/example.c.

◆ test_dict_inflate()

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

Definition at line 463 of file zlib123/example.c.

◆ test_flush()

void test_flush ( Byte compr,
uLong comprLen 
)

Definition at line 344 of file zlib123/example.c.

◆ test_gzio()

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

Definition at line 85 of file zlib123/example.c.

◆ test_inflate()

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

Definition at line 207 of file zlib123/example.c.

◆ test_large_deflate()

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

Definition at line 248 of file zlib123/example.c.

◆ test_large_inflate()

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

Definition at line 303 of file zlib123/example.c.

◆ test_sync()

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

Definition at line 382 of file zlib123/example.c.

Variable Documentation

◆ dictId

uLong dictId

Definition at line 35 of file zlib123/example.c.

◆ dictionary

const char dictionary[] = "hello"

Definition at line 34 of file zlib123/example.c.

◆ hello

const char hello[] = "hello, hello!"

Definition at line 29 of file zlib123/example.c.



openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Sep 8 2022 02:24:06