LLVM API Documentation
#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 | |
| void | BZ2_bz__AssertH__fail (int errcode) |
| static int | bz_config_ok (void) |
| static void * | default_bzalloc (void *opaque, Int32 items, Int32 size) |
| static void | default_bzfree (void *opaque, void *addr) |
| static void | prepare_new_block (EState *s) |
| static void | init_RL (EState *s) |
| static Bool | isempty_RL (EState *s) |
| static void | add_pair_to_block (EState *s) |
| static void | flush_RL (EState *s) |
| static Bool | copy_input_until_stop (EState *s) |
| static Bool | copy_output_until_stop (EState *s) |
| static Bool | handle_compress (bz_stream *strm) |
| static void | unRLE_obuf_to_output_FAST (DState *s) |
| __inline__ Int32 | BZ2_indexIntoF (Int32 indx, Int32 *cftab) |
| static void | unRLE_obuf_to_output_SMALL (DState *s) |
| static Bool | myfeof (FILE *f) |
| static BZFILE * | bzopen_or_bzdopen (const char *path, int fd, const char *mode, int open_mode) |
Variables | |
| int BZ_API( | BZ2_bzCompressInit )(bz_stream *strm, int blockSize100k, int verbosity, int workFactor) |
| int BZ_API( | BZ2_bzCompress )(bz_stream *strm, int action) |
| int BZ_API( | BZ2_bzCompressEnd )(bz_stream *strm) |
| int BZ_API( | BZ2_bzDecompressInit )(bz_stream *strm, int verbosity, int small) |
| int BZ_API( | BZ2_bzDecompress )(bz_stream *strm) |
| int BZ_API( | BZ2_bzDecompressEnd )(bz_stream *strm) |
| BZFILE *BZ_API( | BZ2_bzWriteOpen )(int *bzerror, FILE *f, int blockSize100k, int verbosity, int workFactor) |
| void BZ_API( | BZ2_bzWrite )(int *bzerror, 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_bzReadOpen )(int *bzerror, FILE *f, int verbosity, int small, void *unused, int nUnused) |
| void BZ_API( | BZ2_bzReadClose )(int *bzerror, BZFILE *b) |
| int BZ_API( | BZ2_bzRead )(int *bzerror, BZFILE *b, void *buf, int len) |
| void BZ_API( | BZ2_bzReadGetUnused )(int *bzerror, BZFILE *b, void **unused, int *nUnused) |
| 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) |
| const char *BZ_API( | BZ2_bzlibVersion )(void) |
| BZFILE *BZ_API( | BZ2_bzopen )(const char *path, const char *mode) |
| BZFILE *BZ_API( | BZ2_bzdopen )(int fd, const char *mode) |
| int BZ_API( | BZ2_bzread )(BZFILE *b, void *buf, int len) |
| int BZ_API( | BZ2_bzwrite )(BZFILE *b, void *buf, int len) |
| int BZ_API( | BZ2_bzflush )(BZFILE *b) |
| void BZ_API( | BZ2_bzclose )(BZFILE *b) |
| static const char * | bzerrorstrings [] |
| const char *BZ_API( | BZ2_bzerror )(BZFILE *b, int *errnum) |
|
|
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 305 of file bzlib.c. Referenced by copy_input_until_stop(). |
|
|
Value: { \
if (bzerror != NULL) *bzerror = eee; \
if (bzf != NULL) bzf->lastErr = eee; \
}
|
|
|
Definition at line 1402 of file bzlib.c. Referenced by bzopen_or_bzdopen(). |
|
|
Definition at line 261 of file bzlib.c. References EState::block, EState::blockCRC, BZ_UPDATE_CRC, EState::inUse, EState::nblock, EState::state_in_ch, EState::state_in_len, and True. Referenced by flush_RL(). |
|
|
Definition at line 86 of file bzlib.c. References BZ2_bzlibVersion. |
|
||||||||||||
|
|
|
|
|
|
||||||||||||||||||||
|
Definition at line 1406 of file bzlib.c. References BZ2_bzReadOpen, BZ2_bzWriteOpen, BZ_HDR_0, BZ_MAX_UNUSED, and SET_BINARY_MODE. |
|
|
Definition at line 334 of file bzlib.c. References ADD_CHAR_TO_BLOCK, bz_stream::avail_in, EState::avail_in_expect, BZ_M_RUNNING, False, EState::mode, EState::nblock, EState::nblockMAX, bz_stream::next_in, EState::strm, bz_stream::total_in_hi32, bz_stream::total_in_lo32, and True. Referenced by handle_compress(). |
|
|
Definition at line 379 of file bzlib.c. References bz_stream::avail_out, False, bz_stream::next_out, EState::numZ, EState::state_out_pos, EState::strm, bz_stream::total_out_hi32, bz_stream::total_out_lo32, True, and EState::zbits. Referenced by handle_compress(). |
|
||||||||||||||||
|
|
|
||||||||||||
|
|
|
|
Definition at line 297 of file bzlib.c. References add_pair_to_block(), init_RL(), and EState::state_in_ch. Referenced by handle_compress(). |
|
|
Definition at line 406 of file bzlib.c. References bz_stream::avail_in, EState::avail_in_expect, BZ2_compressBlock(), BZ_M_FINISHING, BZ_M_FLUSHING, BZ_M_RUNNING, BZ_S_INPUT, BZ_S_OUTPUT, copy_input_until_stop(), copy_output_until_stop(), False, flush_RL(), isempty_RL(), EState::mode, EState::nblock, EState::nblockMAX, EState::numZ, prepare_new_block(), EState::state, bz_stream::state, EState::state_out_pos, EState::strm, and True. |
|
|
Definition at line 176 of file bzlib.c. References EState::state_in_ch, and EState::state_in_len. Referenced by flush_RL(). |
|
|
Definition at line 184 of file bzlib.c. References False, EState::state_in_ch, EState::state_in_len, and True. Referenced by handle_compress(). |
|
|
|
|
|
Definition at line 162 of file bzlib.c. References EState::blockCRC, EState::blockNo, BZ_INITIALISE_CRC, False, EState::nblock, EState::numZ, and EState::state_out_pos. Referenced by handle_compress(). |
|
|
|
Definition at line 736 of file bzlib.c. References bz_stream::avail_out, DState::blockRandomised, BZ_GET_SMALL, BZ_RAND_MASK, BZ_RAND_UPD_MASK, BZ_UPDATE_CRC, DState::calculatedBlockCRC, DState::k0, DState::nblock_used, bz_stream::next_out, DState::save_nblock, DState::state_out_ch, DState::state_out_len, DState::strm, bz_stream::total_out_hi32, bz_stream::total_out_lo32, and True. |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 452 of file bzlib.c. Referenced by llvm::Compressor::compress(). |
|
|
Definition at line 513 of file bzlib.c. Referenced by llvm::Compressor::compress(). |
|
|
Definition at line 194 of file bzlib.c. Referenced by llvm::Compressor::compress(). |
|
|
Definition at line 831 of file bzlib.c. Referenced by llvm::Compressor::decompress(). |
|
|
Definition at line 883 of file bzlib.c. Referenced by llvm::Compressor::decompress(). |
|
|
Definition at line 538 of file bzlib.c. Referenced by llvm::Compressor::decompress(). |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 1388 of file bzlib.c. Referenced by BZ2_bz__AssertH__fail(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 1109 of file bzlib.c. Referenced by bzopen_or_bzdopen(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 938 of file bzlib.c. Referenced by bzopen_or_bzdopen(). |
|
|
Initial value: {
"OK"
,"SEQUENCE_ERROR"
,"PARAM_ERROR"
,"MEM_ERROR"
,"DATA_ERROR"
,"DATA_ERROR_MAGIC"
,"IO_ERROR"
,"UNEXPECTED_EOF"
,"OUTBUFF_FULL"
,"CONFIG_ERROR"
,"???"
,"???"
,"???"
,"???"
,"???"
,"???"
}
|