#include "bzlib_private.h"
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 BZFILE * | bzopen_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 ADD_CHAR_TO_BLOCK | ( | zs, | |
zchh0 | |||
) |
{ \ 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++; \ } \ }
#define BZ_SETERR | ( | eee | ) |
#define SET_BINARY_MODE | ( | file | ) |
static void add_pair_to_block | ( | EState * | s | ) | [static] |
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] |
static BZFILE* bzopen_or_bzdopen | ( | const char * | path, |
int | fd, | ||
const char * | mode, | ||
int | open_mode | ||
) | [static] |
static Bool copy_input_until_stop | ( | EState * | s | ) | [static] |
static Bool copy_output_until_stop | ( | EState * | s | ) | [static] |
static void* default_bzalloc | ( | void * | opaque, |
Int32 | items, | ||
Int32 | size | ||
) | [static] |
static void default_bzfree | ( | void * | opaque, |
void * | addr | ||
) | [static] |
static Bool handle_compress | ( | bz_stream * | strm | ) | [static] |
static Bool isempty_RL | ( | EState * | s | ) | [static] |
static void prepare_new_block | ( | EState * | s | ) | [static] |
static Bool unRLE_obuf_to_output_FAST | ( | DState * | s | ) | [static] |
static Bool unRLE_obuf_to_output_SMALL | ( | DState * | s | ) | [static] |
const char* bzerrorstrings[] [static] |