Classes | Defines | Functions | Variables
bzlib.c File Reference
#include "bzlib_private.h"
Include dependency graph for bzlib.c:

Go to the source code of this file.

Classes

struct  bzFile

Defines

#define ADD_CHAR_TO_BLOCK(zs, zchh0)
#define BZ_SETERR(eee)
#define SET_BINARY_MODE(file)

Functions

static void add_pair_to_block (EState *s)
void BZ2_bz__AssertH__fail (int errcode)
int BZ_API() BZ2_bzBuffToBuffCompress (char *dest, unsigned int *destLen, char *source, unsigned int sourceLen, int blockSize100k, int verbosity, int workFactor)
int BZ_API() BZ2_bzBuffToBuffDecompress (char *dest, unsigned int *destLen, char *source, unsigned int sourceLen, int small, int verbosity)
void BZ_API() BZ2_bzclose (BZFILE *b)
int BZ_API() BZ2_bzCompress (bz_stream *strm, int action)
int BZ_API() BZ2_bzCompressEnd (bz_stream *strm)
int BZ_API() BZ2_bzCompressInit (bz_stream *strm, int blockSize100k, int verbosity, int workFactor)
int BZ_API() BZ2_bzDecompress (bz_stream *strm)
int BZ_API() BZ2_bzDecompressEnd (bz_stream *strm)
int BZ_API() BZ2_bzDecompressInit (bz_stream *strm, int verbosity, int small)
BZFILE *BZ_API() BZ2_bzdopen (int fd, const char *mode)
const char *BZ_API() BZ2_bzerror (BZFILE *b, int *errnum)
int BZ_API() BZ2_bzflush (BZFILE *b)
const char *BZ_API() BZ2_bzlibVersion (void)
BZFILE *BZ_API() BZ2_bzopen (const char *path, const char *mode)
int BZ_API() BZ2_bzRead (int *bzerror, BZFILE *b, void *buf, int len)
int BZ_API() BZ2_bzread (BZFILE *b, void *buf, int len)
void BZ_API() BZ2_bzReadClose (int *bzerror, BZFILE *b)
void BZ_API() BZ2_bzReadGetUnused (int *bzerror, BZFILE *b, void **unused, int *nUnused)
BZFILE *BZ_API() BZ2_bzReadOpen (int *bzerror, FILE *f, int verbosity, int small, void *unused, int nUnused)
void BZ_API() BZ2_bzWrite (int *bzerror, BZFILE *b, void *buf, int len)
int BZ_API() BZ2_bzwrite (BZFILE *b, void *buf, int len)
void BZ_API() BZ2_bzWriteClose (int *bzerror, BZFILE *b, int abandon, unsigned int *nbytes_in, unsigned int *nbytes_out)
void BZ_API() BZ2_bzWriteClose64 (int *bzerror, BZFILE *b, int abandon, unsigned int *nbytes_in_lo32, unsigned int *nbytes_in_hi32, unsigned int *nbytes_out_lo32, unsigned int *nbytes_out_hi32)
BZFILE *BZ_API() BZ2_bzWriteOpen (int *bzerror, FILE *f, int blockSize100k, int verbosity, int workFactor)
__inline__ Int32 BZ2_indexIntoF (Int32 indx, Int32 *cftab)
static int bz_config_ok (void)
static BZFILEbzopen_or_bzdopen (const char *path, int fd, const char *mode, int open_mode)
static Bool copy_input_until_stop (EState *s)
static Bool copy_output_until_stop (EState *s)
static void * default_bzalloc (void *opaque, Int32 items, Int32 size)
static void default_bzfree (void *opaque, void *addr)
static void flush_RL (EState *s)
static Bool handle_compress (bz_stream *strm)
static void init_RL (EState *s)
static Bool isempty_RL (EState *s)
static Bool myfeof (FILE *f)
static void prepare_new_block (EState *s)
static Bool unRLE_obuf_to_output_FAST (DState *s)
static Bool unRLE_obuf_to_output_SMALL (DState *s)

Variables

static const char * bzerrorstrings []

Define Documentation

#define ADD_CHAR_TO_BLOCK (   zs,
  zchh0 
)
Value:
{                                                 \
   UInt32 zchh = (UInt32)(zchh0);                 \
   /*-- fast track the common case --*/           \
   if (zchh != zs->state_in_ch &&                 \
       zs->state_in_len == 1) {                   \
      UChar ch = (UChar)(zs->state_in_ch);        \
      BZ_UPDATE_CRC( zs->blockCRC, ch );          \
      zs->inUse[zs->state_in_ch] = True;          \
      zs->block[zs->nblock] = (UChar)ch;          \
      zs->nblock++;                               \
      zs->state_in_ch = zchh;                     \
   }                                              \
   else                                           \
   /*-- general, uncommon cases --*/              \
   if (zchh != zs->state_in_ch ||                 \
      zs->state_in_len == 255) {                  \
      if (zs->state_in_ch < 256)                  \
         add_pair_to_block ( zs );                \
      zs->state_in_ch = zchh;                     \
      zs->state_in_len = 1;                       \
   } else {                                       \
      zs->state_in_len++;                         \
   }                                              \
}

Definition at line 260 of file bzlib.c.

#define BZ_SETERR (   eee)
Value:
{                                         \
   if (bzerror != NULL) *bzerror = eee;   \
   if (bzf != NULL) bzf->lastErr = eee;   \
}

Definition at line 886 of file bzlib.c.

#define SET_BINARY_MODE (   file)

Definition at line 1380 of file bzlib.c.


Function Documentation

static void add_pair_to_block ( EState s) [static]

Definition at line 216 of file bzlib.c.

void BZ2_bz__AssertH__fail ( int  errcode)

Definition at line 41 of file bzlib.c.

int BZ_API() BZ2_bzBuffToBuffCompress ( char *  dest,
unsigned int *  destLen,
char *  source,
unsigned int  sourceLen,
int  blockSize100k,
int  verbosity,
int  workFactor 
)

Definition at line 1248 of file bzlib.c.

int BZ_API() BZ2_bzBuffToBuffDecompress ( char *  dest,
unsigned int *  destLen,
char *  source,
unsigned int  sourceLen,
int  small,
int  verbosity 
)

Definition at line 1300 of file bzlib.c.

void BZ_API() BZ2_bzclose ( BZFILE b)

Definition at line 1514 of file bzlib.c.

int BZ_API() BZ2_bzCompress ( bz_stream strm,
int  action 
)

Definition at line 407 of file bzlib.c.

int BZ_API() BZ2_bzCompressEnd ( bz_stream strm)

Definition at line 468 of file bzlib.c.

int BZ_API() BZ2_bzCompressInit ( bz_stream strm,
int  blockSize100k,
int  verbosity,
int  workFactor 
)

Definition at line 149 of file bzlib.c.

int BZ_API() BZ2_bzDecompress ( bz_stream strm)

Definition at line 808 of file bzlib.c.

Definition at line 862 of file bzlib.c.

int BZ_API() BZ2_bzDecompressInit ( bz_stream strm,
int  verbosity,
int  small 
)

Definition at line 493 of file bzlib.c.

BZFILE* BZ_API() BZ2_bzdopen ( int  fd,
const char *  mode 
)

Definition at line 1470 of file bzlib.c.

const char* BZ_API() BZ2_bzerror ( BZFILE b,
int *  errnum 
)

Definition at line 1559 of file bzlib.c.

int BZ_API() BZ2_bzflush ( BZFILE b)

Definition at line 1506 of file bzlib.c.

const char* BZ_API() BZ2_bzlibVersion ( void  )

Definition at line 1366 of file bzlib.c.

BZFILE* BZ_API() BZ2_bzopen ( const char *  path,
const char *  mode 
)

Definition at line 1461 of file bzlib.c.

int BZ_API() BZ2_bzRead ( int *  bzerror,
BZFILE b,
void *  buf,
int  len 
)

Definition at line 1162 of file bzlib.c.

int BZ_API() BZ2_bzread ( BZFILE b,
void *  buf,
int  len 
)

Definition at line 1478 of file bzlib.c.

void BZ_API() BZ2_bzReadClose ( int *  bzerror,
BZFILE b 
)

Definition at line 1143 of file bzlib.c.

void BZ_API() BZ2_bzReadGetUnused ( int *  bzerror,
BZFILE b,
void **  unused,
int *  nUnused 
)

Definition at line 1222 of file bzlib.c.

BZFILE* BZ_API() BZ2_bzReadOpen ( int *  bzerror,
FILE *  f,
int  verbosity,
int  small,
void *  unused,
int  nUnused 
)

Definition at line 1088 of file bzlib.c.

void BZ_API() BZ2_bzWrite ( int *  bzerror,
BZFILE b,
void *  buf,
int  len 
)

Definition at line 965 of file bzlib.c.

int BZ_API() BZ2_bzwrite ( BZFILE b,
void *  buf,
int  len 
)

Definition at line 1492 of file bzlib.c.

void BZ_API() BZ2_bzWriteClose ( int *  bzerror,
BZFILE b,
int  abandon,
unsigned int *  nbytes_in,
unsigned int *  nbytes_out 
)

Definition at line 1010 of file bzlib.c.

void BZ_API() BZ2_bzWriteClose64 ( int *  bzerror,
BZFILE b,
int  abandon,
unsigned int *  nbytes_in_lo32,
unsigned int *  nbytes_in_hi32,
unsigned int *  nbytes_out_lo32,
unsigned int *  nbytes_out_hi32 
)

Definition at line 1022 of file bzlib.c.

BZFILE* BZ_API() BZ2_bzWriteOpen ( int *  bzerror,
FILE *  f,
int  blockSize100k,
int  verbosity,
int  workFactor 
)

Definition at line 917 of file bzlib.c.

__inline__ Int32 BZ2_indexIntoF ( Int32  indx,
Int32 cftab 
)

Definition at line 687 of file bzlib.c.

static int bz_config_ok ( void  ) [static]

Definition at line 91 of file bzlib.c.

static BZFILE* bzopen_or_bzdopen ( const char *  path,
int  fd,
const char *  mode,
int  open_mode 
) [static]

Definition at line 1384 of file bzlib.c.

static Bool copy_input_until_stop ( EState s) [static]

Definition at line 289 of file bzlib.c.

static Bool copy_output_until_stop ( EState s) [static]

Definition at line 334 of file bzlib.c.

static void* default_bzalloc ( void *  opaque,
Int32  items,
Int32  size 
) [static]

Definition at line 102 of file bzlib.c.

static void default_bzfree ( void *  opaque,
void *  addr 
) [static]

Definition at line 109 of file bzlib.c.

static void flush_RL ( EState s) [static]

Definition at line 252 of file bzlib.c.

static Bool handle_compress ( bz_stream strm) [static]

Definition at line 361 of file bzlib.c.

static void init_RL ( EState s) [static]

Definition at line 131 of file bzlib.c.

static Bool isempty_RL ( EState s) [static]

Definition at line 139 of file bzlib.c.

static Bool myfeof ( FILE *  f) [static]

Definition at line 906 of file bzlib.c.

static void prepare_new_block ( EState s) [static]

Definition at line 117 of file bzlib.c.

static Bool unRLE_obuf_to_output_FAST ( DState s) [static]

Definition at line 536 of file bzlib.c.

static Bool unRLE_obuf_to_output_SMALL ( DState s) [static]

Definition at line 706 of file bzlib.c.


Variable Documentation

const char* bzerrorstrings[] [static]
Initial value:
 {
       "OK"
      ,"SEQUENCE_ERROR"
      ,"PARAM_ERROR"
      ,"MEM_ERROR"
      ,"DATA_ERROR"
      ,"DATA_ERROR_MAGIC"
      ,"IO_ERROR"
      ,"UNEXPECTED_EOF"
      ,"OUTBUFF_FULL"
      ,"CONFIG_ERROR"
      ,"???"   
      ,"???"   
      ,"???"   
      ,"???"   
      ,"???"   
      ,"???"   
}

Definition at line 1539 of file bzlib.c.



win_bzip2
Author(s): Daniel Stonier
autogenerated on Wed Sep 16 2015 07:14:10