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

Go to the source code of this file.

Classes

struct  file
 

Macros

#define local   static
 
#define LGCHUNK   14
 
#define CHUNK   (1U << LGCHUNK)
 
#define DSIZE   32768U
 
#define read1(in)
 

Functions

static void bye (char *msg1, char *msg2)
 
static unsigned gcd (unsigned a, unsigned b)
 
static void rotate (unsigned char *list, unsigned len, unsigned rot)
 
static int readin (file *in)
 
static int readmore (file *in)
 
static void skip (file *in, unsigned n)
 
unsigned long read4 (file *in)
 
static void gzheader (file *in)
 
static int gzscan (char *name, z_stream *strm, int level)
 
static void gztack (char *name, int gd, z_stream *strm, int last)
 
int main (int argc, char **argv)
 

Class Documentation

struct file

Definition at line 170 of file gzappend.c.

Collaboration diagram for file:
Collaboration graph
Class Members
unsigned char * buf
int fd
unsigned left
char * name
z_const unsigned char * next
int size

Macro Definition Documentation

#define CHUNK   (1U << LGCHUNK)

Definition at line 89 of file gzappend.c.

#define DSIZE   32768U

Definition at line 90 of file gzappend.c.

#define LGCHUNK   14

Definition at line 88 of file gzappend.c.

#define local   static

Definition at line 87 of file gzappend.c.

#define read1 (   in)
Value:
(in->left == 0 ? readmore(in) : 0, \
in->left--, *(in->next)++)
static unsigned in(void *in_desc, z_const unsigned char **buf)
Definition: gun.c:89
static int readmore(file *in)
Definition: gzappend.c:192

Definition at line 198 of file gzappend.c.

Function Documentation

static void bye ( char *  msg1,
char *  msg2 
)
static

Definition at line 93 of file gzappend.c.

static unsigned gcd ( unsigned  a,
unsigned  b 
)
static

Definition at line 102 of file gzappend.c.

static void gzheader ( file in)
static

Definition at line 235 of file gzappend.c.

static int gzscan ( char *  name,
z_stream strm,
int  level 
)
static

Definition at line 259 of file gzappend.c.

static void gztack ( char *  name,
int  gd,
z_stream strm,
int  last 
)
static

Definition at line 388 of file gzappend.c.

int main ( int  argc,
char **  argv 
)

Definition at line 466 of file gzappend.c.

unsigned long read4 ( file in)

Definition at line 223 of file gzappend.c.

static int readin ( file in)
static

Definition at line 180 of file gzappend.c.

static int readmore ( file in)
static

Definition at line 192 of file gzappend.c.

static void rotate ( unsigned char *  list,
unsigned  len,
unsigned  rot 
)
static

Definition at line 123 of file gzappend.c.

static void skip ( file in,
unsigned  n 
)
static

Definition at line 202 of file gzappend.c.