#include "zlib.h"
#include <stdio.h>
Go to the source code of this file.
|
| void test_deflate | OF ((Byte *compr, uLong comprLen)) |
| |
| void test_inflate | OF ((Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen)) |
| |
| void test_flush | OF ((Byte *compr, uLong *comprLen)) |
| |
| int main | OF ((int argc, char *argv[])) |
| |
| void test_gzio | OF ((const char *fname, Byte *uncompr, uLong uncomprLen)) |
| |
| void | test_compress (Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen) |
| |
| void | test_gzio (char *fname, Byte *uncompr, uLong uncomprLen) const |
| |
| void | test_deflate (Byte *compr, uLong comprLen) |
| |
| 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_flush (Byte *compr, uLong *comprLen) |
| |
| void | test_sync (Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen) |
| |
| void | test_dict_deflate (Byte *compr, uLong comprLen) |
| |
| void | test_dict_inflate (Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen) |
| |
| int | main (int argc, argv) |
| |
| #define CHECK_ERR |
( |
|
err, |
|
|
|
msg |
|
) |
| |
Value:{ \
fprintf(stderr, "%s error: %d\n", msg, err); \
exit(1); \
} \
}
Definition at line 22 of file example.c.
| #define TESTFILE "foo.gz" |
| int main |
( |
int |
argc, |
|
|
argv |
|
|
) |
| |
| int main OF |
( |
(int argc, char *argv[]) |
| ) |
|
| void test_deflate |
( |
Byte * |
compr, |
|
|
uLong |
comprLen |
|
) |
| |
| void test_dict_deflate |
( |
Byte * |
compr, |
|
|
uLong |
comprLen |
|
) |
| |
| void test_flush |
( |
Byte * |
compr, |
|
|
uLong * |
comprLen |
|
) |
| |
| void test_gzio |
( |
char * |
fname, |
|
|
Byte * |
uncompr, |
|
|
uLong |
uncomprLen |
|
) |
| const |
| void test_large_deflate |
( |
Byte * |
compr, |
|
|
uLong |
comprLen, |
|
|
Byte * |
uncompr, |
|
|
uLong |
uncomprLen |
|
) |
| |
| void test_large_inflate |
( |
Byte * |
compr, |
|
|
uLong |
comprLen, |
|
|
Byte * |
uncompr, |
|
|
uLong |
uncomprLen |
|
) |
| |
| const char dictionary[] = "hello" |
| z_const char hello[] = "hello, hello!" |