Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
example.c File Reference
#include "zlib.h"
#include <stdio.h>
Include dependency graph for example.c:

Go to the source code of this file.

Macros

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

Functions

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)
 

Variables

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

Macro Definition Documentation

#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:173

Definition at line 22 of file example.c.

#define TESTFILE   "foo.gz"

Definition at line 19 of file example.c.

Function Documentation

int main ( int  argc,
argv   
)

Definition at line 545 of file example.c.

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 
)

Definition at line 88 of file example.c.

void test_deflate ( Byte compr,
uLong  comprLen 
)

Definition at line 200 of file example.c.

void test_dict_deflate ( Byte compr,
uLong  comprLen 
)

Definition at line 457 of file example.c.

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

Definition at line 494 of file example.c.

void test_flush ( Byte compr,
uLong comprLen 
)

Definition at line 375 of file example.c.

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

Definition at line 114 of file example.c.

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

Definition at line 238 of file example.c.

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

Definition at line 279 of file example.c.

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

Definition at line 334 of file example.c.

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

Definition at line 413 of file example.c.

Variable Documentation

uLong dictId

Definition at line 35 of file example.c.

const char dictionary[] = "hello"

Definition at line 34 of file example.c.

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

Definition at line 29 of file example.c.

alloc_func zalloc = (alloc_func)0
static

Definition at line 77 of file example.c.

free_func zfree = (free_func)0
static

Definition at line 78 of file example.c.