Bytef
uLong ZEXPORT adler32(uLong adler, const Bytef *buf, uInt len) {
uLong ZEXPORT adler32_z(uLong adler, const Bytef *buf, z_size_t len) {
int ZEXPORT compress2_z(Bytef *dest, z_size_t *destLen, const Bytef *source,
stream.next_in = (z_const Bytef *)source;
int ZEXPORT compress2(Bytef *dest, uLongf *destLen, const Bytef *source,
int ZEXPORT compress_z(Bytef *dest, z_size_t *destLen, const Bytef *source,
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source,
ds->window = (Bytef *) ZALLOC(dest, ds->w_size, 2*sizeof(Byte));
Bytef *scan = s->window + s->strstart; /* current string */
Bytef *match; /* matched string */
Bytef *strend = s->window + s->strstart + MAX_MATCH - 1;
Bytef *strend = s->window + s->strstart + MAX_MATCH;
Bytef *scan = s->window + s->strstart; /* current string */
Bytef *match; /* matched string */
Bytef *strend = s->window + s->strstart + MAX_MATCH;
Bytef *back = s->window + (int)match, *here = s->window + start;
s->pending_buf[s->pending - 4] = (Bytef)len;
s->pending_buf[s->pending - 3] = (Bytef)(len >> 8);
s->pending_buf[s->pending - 2] = (Bytef)~len;
s->pending_buf[s->pending - 1] = (Bytef)(~len >> 8);
Bytef *scan, *strend; /* scan goes up to strend for length of run */
local unsigned read_buf(z_streamp strm, Bytef *buf, unsigned size) {
s->window = (Bytef *) ZALLOC(strm, s->w_size, 2*sizeof(Byte));
int ZEXPORT deflateSetDictionary(z_streamp strm, const Bytef *dictionary,
strm->next_in = (z_const Bytef *)dictionary;
int ZEXPORT deflateGetDictionary(z_streamp strm, Bytef *dictionary,
Bytef *str;
Bytef *pending_buf; /* output still pending */
Bytef *pending_out; /* next pending byte to output to the stream */
Bytef *window;
#define put_byte(s, c) {s->pending_buf[s->pending++] = (Bytef)(c);}
state->strm.next_in = (z_const Bytef *)buf;
int ZEXPORT inflateGetDictionary(z_streamp strm, Bytef *dictionary,
int ZEXPORT inflateSetDictionary(z_streamp strm, const Bytef *dictionary,
local int updatewindow(z_streamp strm, const Bytef *end, unsigned copy) {
state->head->name[state->length++] = (Bytef)len;
state->head->comment[state->length++] = (Bytef)len;
zmemcpy(s->pending_buf + s->pending, (Bytef *)buf, stored_len);
int ZEXPORT uncompress2_z(Bytef *dest, z_size_t *destLen, const Bytef *source,
dest = (Bytef *)&stream.reserved; /* next_out cannot be NULL */
stream.next_in = (z_const Bytef *)source;
int ZEXPORT uncompress2(Bytef *dest, uLongf *destLen, const Bytef *source,
int ZEXPORT uncompress_z(Bytef *dest, z_size_t *destLen, const Bytef *source,
int ZEXPORT uncompress(Bytef *dest, uLongf *destLen, const Bytef *source,
Bytef *extra; /* pointer to extra field or Z_NULL if none */
Bytef *name; /* pointer to zero-terminated file name or Z_NULL */
ZEXTERN int ZEXPORT compress(Bytef *dest, uLongf *destLen,
const Bytef *source, uLong sourceLen);
ZEXTERN int ZEXPORT compress_z(Bytef *dest, z_size_t *destLen,
const Bytef *source, z_size_t sourceLen);
Bytef *comment; /* pointer to zero-terminated comment or Z_NULL */
ZEXTERN int ZEXPORT compress2(Bytef *dest, uLongf *destLen,
const Bytef *source, uLong sourceLen,
ZEXTERN int ZEXPORT compress2_z(Bytef *dest, z_size_t *destLen,
const Bytef *source, z_size_t sourceLen,
ZEXTERN int ZEXPORT uncompress(Bytef *dest, uLongf *destLen,
const Bytef *source, uLong sourceLen);
ZEXTERN int ZEXPORT uncompress_z(Bytef *dest, z_size_t *destLen,
const Bytef *source, z_size_t sourceLen);
ZEXTERN int ZEXPORT uncompress2(Bytef *dest, uLongf *destLen,
const Bytef *source, uLong *sourceLen);
ZEXTERN int ZEXPORT uncompress2_z(Bytef *dest, z_size_t *destLen,
const Bytef *source, z_size_t *sourceLen);
ZEXTERN uLong ZEXPORT adler32(uLong adler, const Bytef *buf, uInt len);
ZEXTERN uLong ZEXPORT adler32_z(uLong adler, const Bytef *buf,
ZEXTERN uLong ZEXPORT crc32(uLong crc, const Bytef *buf, uInt len);
ZEXTERN uLong ZEXPORT crc32_z(uLong crc, const Bytef *buf,
const Bytef *dictionary,
Bytef *dictionary,
z_const Bytef *next_in; /* next input byte */
const Bytef *dictionary,
Bytef *dictionary,
Bytef *next_out; /* next output byte will go here */
(const Bytef*)dictionary, (int)sizeof(dictionary));
err = inflateSetDictionary(&d_stream, (const Bytef*)dictionary,
err = compress(compr, &comprLen, (const Bytef*)hello, len);
uLong ZEXPORT adler32(uLong adler, const Bytef *buf, uInt len) {
uLong ZEXPORT adler32_z(uLong adler, const Bytef *buf, z_size_t len) {
int ZEXPORT compress2_z(Bytef *dest, z_size_t *destLen, const Bytef *source,
stream.next_in = (z_const Bytef *)source;
int ZEXPORT compress2(Bytef *dest, uLongf *destLen, const Bytef *source,
int ZEXPORT compress_z(Bytef *dest, z_size_t *destLen, const Bytef *source,
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source,
ds->window = (Bytef *) ZALLOC(dest, ds->w_size, 2*sizeof(Byte));
Bytef *scan = s->window + s->strstart; /* current string */
Bytef *match; /* matched string */
Bytef *strend = s->window + s->strstart + MAX_MATCH - 1;
Bytef *strend = s->window + s->strstart + MAX_MATCH;
Bytef *scan = s->window + s->strstart; /* current string */
Bytef *match; /* matched string */
Bytef *strend = s->window + s->strstart + MAX_MATCH;
Bytef *back = s->window + (int)match, *here = s->window + start;
s->pending_buf[s->pending - 4] = (Bytef)len;
s->pending_buf[s->pending - 3] = (Bytef)(len >> 8);
s->pending_buf[s->pending - 2] = (Bytef)~len;
s->pending_buf[s->pending - 1] = (Bytef)(~len >> 8);
Bytef *scan, *strend; /* scan goes up to strend for length of run */
local unsigned read_buf(z_streamp strm, Bytef *buf, unsigned size) {
s->window = (Bytef *) ZALLOC(strm, s->w_size, 2*sizeof(Byte));
int ZEXPORT deflateSetDictionary(z_streamp strm, const Bytef *dictionary,
strm->next_in = (z_const Bytef *)dictionary;
int ZEXPORT deflateGetDictionary(z_streamp strm, Bytef *dictionary,
Bytef *str;
Bytef *pending_buf; /* output still pending */
Bytef *pending_out; /* next pending byte to output to the stream */
Bytef *window;
#define put_byte(s, c) {s->pending_buf[s->pending++] = (Bytef)(c);}
int ZEXPORT inflateGetDictionary(z_streamp strm, Bytef *dictionary,
int ZEXPORT inflateSetDictionary(z_streamp strm, const Bytef *dictionary,
local int updatewindow(z_streamp strm, const Bytef *end, unsigned copy) {
state->head->name[state->length++] = (Bytef)len;
state->head->comment[state->length++] = (Bytef)len;
zmemcpy(s->pending_buf + s->pending, (Bytef *)buf, stored_len);
Bytef *extra; /* pointer to extra field or Z_NULL if none */
Bytef *name; /* pointer to zero-terminated file name or Z_NULL */
ZEXTERN int ZEXPORT compress(Bytef *dest, uLongf *destLen,
const Bytef *source, uLong sourceLen);
ZEXTERN int ZEXPORT compress_z(Bytef *dest, z_size_t *destLen,
const Bytef *source, z_size_t sourceLen);
Bytef *comment; /* pointer to zero-terminated comment or Z_NULL */
ZEXTERN int ZEXPORT compress2(Bytef *dest, uLongf *destLen,
const Bytef *source, uLong sourceLen,
ZEXTERN int ZEXPORT compress2_z(Bytef *dest, z_size_t *destLen,
const Bytef *source, z_size_t sourceLen,
ZEXTERN int ZEXPORT uncompress(Bytef *dest, uLongf *destLen,
const Bytef *source, uLong sourceLen);
ZEXTERN int ZEXPORT uncompress_z(Bytef *dest, z_size_t *destLen,
const Bytef *source, z_size_t sourceLen);
ZEXTERN int ZEXPORT uncompress2(Bytef *dest, uLongf *destLen,
const Bytef *source, uLong *sourceLen);
ZEXTERN int ZEXPORT uncompress2_z(Bytef *dest, z_size_t *destLen,
const Bytef *source, z_size_t *sourceLen);
ZEXTERN uLong ZEXPORT adler32(uLong adler, const Bytef *buf, uInt len);
ZEXTERN uLong ZEXPORT adler32_z(uLong adler, const Bytef *buf,
ZEXTERN uLong ZEXPORT crc32(uLong crc, const Bytef *buf, uInt len);
ZEXTERN uLong ZEXPORT crc32_z(uLong crc, const Bytef *buf,
const Bytef *dictionary,
Bytef *dictionary,
z_const Bytef *next_in; /* next input byte */
const Bytef *dictionary,
Bytef *dictionary,
Bytef *next_out; /* next output byte will go here */
Bytef *ubuf = buf;
Bytef *dest;
Bytef *src;
crc = crc32(crc, (Bytef *)&fsize, sizeof(fsize));
crc = crc32(crc, (Bytef *)&fsize, sizeof(fsize));
crc = crc32(0, (Bytef *)&ih, sizeof ih);
crc = crc32(crc, (Bytef *)buf, nbytes);
crc = crc32(crc, (Bytef *)memp, nbytes);
crc = crc32(crc, (Bytef *)buf, nbytes);
crc = crc32(crc, (Bytef *)buf, nbytes);