- Declared In:
- bzlib.h
Synopsis:
typedef struct {
char *next_in;
unsigned int avail_in;
unsigned int total_in_lo32;
unsigned int total_in_hi32;
char *next_out;
unsigned int avail_out;
unsigned int total_out_lo32;
unsigned int total_out_hi32;
void *state;
void *(*bzalloc)(void *,int,int);
void (*bzfree)(void *,void *);
void *opaque;
}
bz_stream;
Synopsis:
typedef void BZFILE;
Synopsis:
BZ_RUN 0
BZ_FLUSH 1
BZ_FINISH 2
BZ_OK 0
BZ_RUN_OK 1
BZ_FLUSH_OK 2
BZ_FINISH_OK 3
BZ_STREAM_END 4
BZ_SEQUENCE_ERROR (-1)
BZ_PARAM_ERROR (-2)
BZ_MEM_ERROR (-3)
BZ_DATA_ERROR (-4)
BZ_DATA_ERROR_MAGIC (-5)
BZ_IO_ERROR (-6)
BZ_UNEXPECTED_EOF (-7)
BZ_OUTBUFF_FULL (-8)
BZ_CONFIG_ERROR (-9)
Synopsis:
BZ_EXPORT
Synopsis:
BZ_EXTERN extern
Synopsis:
BZ_EXTERN
Synopsis:
BZ_EXTERN extern
Synopsis:
BZ_MAX_UNUSED 5000
Synopsis:
BZ_API(func)
Synopsis:
BZ_API(func)
Synopsis:
BZ_API(func)
Synopsis:
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);
Synopsis:
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);
void BZ_API(BZ2_bzReadGetUnused(int* bzerror, BZFILE* b, void** unused, int* nUnused);
int BZ_API(BZ2_bzRead(int* bzerror, BZFILE* b, void* buf, int len);
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);
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);
const char * BZ_API(BZ2_bzerror(BZFILE *b, int *errnum);