45#define ZIP_OUT_BUF 8192
46#define ZIP_IN_BLOCK 8192
64z_free(
void *priv,
void *addr)
116 st->stream.next_in =
data;
117 st->stream.avail_in =
len;
118 while (st->stream.avail_in > 0)
120 st->stream.next_out = st->buf;
121 st->stream.avail_out = st->buf_len;
126 n_out = st->buf_len - st->stream.avail_out;
146 st->stream.next_in =
NULL;
147 st->stream.avail_in = 0;
150 st->stream.next_out = st->buf;
151 st->stream.avail_out = st->buf_len;
156 n_out = st->buf_len - st->stream.avail_out;
228 px_debug(
"decompress_init: inflateInit error");
244 if (
dec->buf_data > 0)
257 if (
dec->stream.avail_in == 0)
264 dec->stream.next_in = tmp;
265 dec->stream.avail_in = res;
268 dec->stream.next_out =
dec->buf;
269 dec->stream.avail_out =
dec->buf_len;
281 px_debug(
"decompress_read: inflate error: %d", res);
285 dec->buf_data =
dec->buf_len -
dec->stream.avail_out;
304 px_debug(
"decompress_read: extra bytes after end of stream");
#define palloc0_object(type)
int pullf_create(PullFilter **pf_p, const PullFilterOps *op, void *init_arg, PullFilter *src)
int pushf_write(PushFilter *mp, const uint8 *data, int len)
int pushf_create(PushFilter **mp_p, const PushFilterOps *op, void *init_arg, PushFilter *next)
int pullf_read(PullFilter *pf, int len, uint8 **data_p)
void pfree(void *pointer)
static char buf[DEFAULT_XLOG_SEG_SIZE]
int pgp_compress_filter(PushFilter **res, PGP_Context *ctx, PushFilter *dst)
int pgp_decompress_filter(PullFilter **res, PGP_Context *ctx, PullFilter *src)
void px_debug(const char *fmt,...)
void px_memset(void *ptr, int c, size_t len)
#define PXE_PGP_UNSUPPORTED_COMPR
#define PXE_PGP_COMPRESSION_ERROR
#define PXE_PGP_CORRUPT_DATA