zenilib
0.5.3.0
|
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!" |
#define CHECK_ERR | ( | err, | |
msg | |||
) |
Definition at line 22 of file example.c.
Referenced by test_compress(), test_deflate(), test_dict_deflate(), test_dict_inflate(), test_flush(), test_inflate(), test_large_deflate(), test_large_inflate(), and test_sync().
Definition at line 514 of file example.c.
References calloc, free, int, test_compress(), test_deflate(), test_dict_deflate(), test_dict_inflate(), test_flush(), test_gzio(), test_inflate(), test_large_deflate(), test_large_inflate(), test_sync(), TESTFILE, Z_NULL, ZLIB_VERNUM, ZLIB_VERSION, zlibCompileFlags(), and zlibVersion().
void test_deflate OF | ( | (Byte *compr, uLong comprLen) | ) |
void test_flush OF | ( | (Byte *compr, uLong *comprLen) | ) |
Definition at line 59 of file example.c.
References CHECK_ERR, compress(), hello, and uncompress().
Referenced by main().
Definition at line 169 of file example.c.
References z_stream_s::avail_in, z_stream_s::avail_out, CHECK_ERR, deflate(), deflateEnd(), deflateInit, hello, z_stream_s::next_in, z_stream_s::next_out, z_stream_s::opaque, z_stream_s::total_in, z_stream_s::total_out, Z_DEFAULT_COMPRESSION, Z_FINISH, Z_NO_FLUSH, Z_STREAM_END, z_stream_s::zalloc, and z_stream_s::zfree.
Referenced by main().
Definition at line 426 of file example.c.
References z_stream_s::adler, z_stream_s::avail_in, z_stream_s::avail_out, CHECK_ERR, deflate(), deflateEnd(), deflateInit, deflateSetDictionary(), dictId, dictionary, hello, z_stream_s::next_in, z_stream_s::next_out, z_stream_s::opaque, Z_BEST_COMPRESSION, Z_FINISH, Z_STREAM_END, z_stream_s::zalloc, and z_stream_s::zfree.
Referenced by main().
Definition at line 463 of file example.c.
References z_stream_s::adler, z_stream_s::avail_in, z_stream_s::avail_out, CHECK_ERR, dictId, dictionary, hello, inflate(), inflateEnd(), inflateInit, inflateSetDictionary(), z_stream_s::next_in, z_stream_s::next_out, z_stream_s::opaque, Z_NEED_DICT, Z_NO_FLUSH, Z_STREAM_END, z_stream_s::zalloc, and z_stream_s::zfree.
Referenced by main().
Definition at line 344 of file example.c.
References z_stream_s::avail_in, z_stream_s::avail_out, CHECK_ERR, deflate(), deflateEnd(), deflateInit, hello, z_stream_s::next_in, z_stream_s::next_out, z_stream_s::opaque, z_stream_s::total_out, Z_DEFAULT_COMPRESSION, Z_FINISH, Z_FULL_FLUSH, Z_STREAM_END, z_stream_s::zalloc, and z_stream_s::zfree.
Referenced by main().
Definition at line 207 of file example.c.
References z_stream_s::avail_in, z_stream_s::avail_out, CHECK_ERR, hello, inflate(), inflateEnd(), inflateInit, z_stream_s::next_in, z_stream_s::next_out, z_stream_s::opaque, z_stream_s::total_in, z_stream_s::total_out, Z_NO_FLUSH, Z_STREAM_END, z_stream_s::zalloc, and z_stream_s::zfree.
Referenced by main().
Definition at line 248 of file example.c.
References z_stream_s::avail_in, z_stream_s::avail_out, CHECK_ERR, deflate(), deflateEnd(), deflateInit, deflateParams(), z_stream_s::next_in, z_stream_s::next_out, z_stream_s::opaque, Z_BEST_COMPRESSION, Z_BEST_SPEED, Z_DEFAULT_STRATEGY, Z_FILTERED, Z_FINISH, Z_NO_COMPRESSION, Z_NO_FLUSH, Z_STREAM_END, z_stream_s::zalloc, and z_stream_s::zfree.
Referenced by main().
Definition at line 303 of file example.c.
References z_stream_s::avail_in, z_stream_s::avail_out, CHECK_ERR, inflate(), inflateEnd(), inflateInit, z_stream_s::next_in, z_stream_s::next_out, z_stream_s::opaque, z_stream_s::total_out, Z_NO_FLUSH, Z_STREAM_END, z_stream_s::zalloc, and z_stream_s::zfree.
Referenced by main().
Definition at line 382 of file example.c.
References z_stream_s::avail_in, z_stream_s::avail_out, CHECK_ERR, inflate(), inflateEnd(), inflateInit, inflateSync(), z_stream_s::next_in, z_stream_s::next_out, z_stream_s::opaque, Z_DATA_ERROR, Z_FINISH, Z_NO_FLUSH, z_stream_s::zalloc, and z_stream_s::zfree.
Referenced by main().
uLong dictId |
Definition at line 35 of file example.c.
Referenced by test_dict_deflate(), and test_dict_inflate().
const char dictionary[] = "hello" |
Definition at line 34 of file example.c.
Referenced by test_dict_deflate(), and test_dict_inflate().
const char hello[] = "hello, hello!" |
Definition at line 29 of file example.c.
Referenced by SendHello(), test_compress(), test_deflate(), test_dict_deflate(), test_dict_inflate(), test_flush(), test_gzio(), and test_inflate().