27 #ifndef ABC__misc__bzlib__bzlib_h
28 #define ABC__misc__bzlib__bzlib_h
37 #define BZ_FINISH_OK 3
38 #define BZ_STREAM_END 4
39 #define BZ_SEQUENCE_ERROR (-1)
40 #define BZ_PARAM_ERROR (-2)
41 #define BZ_MEM_ERROR (-3)
42 #define BZ_DATA_ERROR (-4)
43 #define BZ_DATA_ERROR_MAGIC (-5)
44 #define BZ_IO_ERROR (-6)
45 #define BZ_UNEXPECTED_EOF (-7)
46 #define BZ_OUTBUFF_FULL (-8)
47 #define BZ_CONFIG_ERROR (-9)
63 void *(*bzalloc)(
void *,int,int);
64 void (*bzfree)(
void *,
void *);
86 # define BZ_API(func) WINAPI func
87 # define BZ_EXTERN extern
90 # define BZ_API(func) (WINAPI * func)
94 # define BZ_API(func) func
95 # define BZ_EXTERN extern
140 #define BZ_MAX_UNUSED 5000
191 unsigned int* nbytes_in,
192 unsigned int* nbytes_out
199 unsigned int* nbytes_in_lo32,
200 unsigned int* nbytes_in_hi32,
201 unsigned int* nbytes_out_lo32,
202 unsigned int* nbytes_out_hi32
211 unsigned int* destLen,
213 unsigned int sourceLen,
221 unsigned int* destLen,
223 unsigned int sourceLen,
BZ_EXTERN const char *BZ_API() BZ2_bzerror(BZFILE *b, int *errnum)
BZ_EXTERN BZFILE *BZ_API() BZ2_bzdopen(int fd, const char *mode)
unsigned int total_in_hi32
BZ_EXTERN void BZ_API() BZ2_bzWrite(int *bzerror, BZFILE *b, void *buf, int len)
BZ_EXTERN BZFILE *BZ_API() BZ2_bzopen(const char *path, const char *mode)
unsigned int total_out_hi32
BZ_EXTERN void BZ_API() BZ2_bzReadClose(int *bzerror, BZFILE *b)
BZ_EXTERN int BZ_API() BZ2_bzRead(int *bzerror, BZFILE *b, void *buf, int len)
unsigned int total_in_lo32
BZ_EXTERN BZFILE *BZ_API() BZ2_bzWriteOpen(int *bzerror, FILE *f, int blockSize100k, int verbosity, int workFactor)
unsigned int total_out_lo32
BZ_EXTERN void BZ_API() BZ2_bzclose(BZFILE *b)
BZ_EXTERN void BZ_API() BZ2_bzReadGetUnused(int *bzerror, BZFILE *b, void **unused, int *nUnused)
BZ_EXTERN int BZ_API() BZ2_bzDecompressEnd(bz_stream *strm)
#define ABC_NAMESPACE_HEADER_START
NAMESPACES ///.
BZ_EXTERN int BZ_API() BZ2_bzCompressEnd(bz_stream *strm)
#define ABC_NAMESPACE_HEADER_END
BZ_EXTERN int BZ_API() BZ2_bzBuffToBuffDecompress(char *dest, unsigned int *destLen, char *source, unsigned int sourceLen, int small, int verbosity)
BZ_EXTERN int BZ_API() BZ2_bzflush(BZFILE *b)
BZ_EXTERN int BZ_API() BZ2_bzDecompress(bz_stream *strm)
BZ_EXTERN int BZ_API() BZ2_bzread(BZFILE *b, void *buf, int len)
BZ_EXTERN void BZ_API() BZ2_bzWriteClose(int *bzerror, BZFILE *b, int abandon, unsigned int *nbytes_in, unsigned int *nbytes_out)
BZ_EXTERN int BZ_API() BZ2_bzDecompressInit(bz_stream *strm, int verbosity, int small)
BZ_EXTERN int BZ_API() BZ2_bzwrite(BZFILE *b, void *buf, int len)
ABC_NAMESPACE_HEADER_START BZ_EXTERN int BZ_API() BZ2_bzCompressInit(bz_stream *strm, int blockSize100k, int verbosity, int workFactor)
BZ_EXTERN int BZ_API() BZ2_bzBuffToBuffCompress(char *dest, unsigned int *destLen, char *source, unsigned int sourceLen, int blockSize100k, int verbosity, int workFactor)
BZ_EXTERN BZFILE *BZ_API() BZ2_bzReadOpen(int *bzerror, FILE *f, int verbosity, int small, void *unused, int nUnused)
BZ_EXTERN int BZ_API() BZ2_bzCompress(bz_stream *strm, int action)
BZ_EXTERN 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)
BZ_EXTERN const char *BZ_API() BZ2_bzlibVersion(void)