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;
(const Bytef*)dictionary, (int)sizeof(dictionary));
err = inflateSetDictionary(&d_stream, (const Bytef*)dictionary,
err = compress(compr, &comprLen, (const Bytef*)hello, 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 */
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 *name; /* pointer to zero-terminated file name 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,
Bytef *comment; /* pointer to zero-terminated comment or Z_NULL */
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,
const Bytef *dictionary,
z_const Bytef *next_in; /* next input byte */
Bytef *dictionary,
Bytef *next_out; /* next output byte will go here */
uLong crc32(uLong crc, const Bytef *buf, uInt len);
ret = uncompress((Bytef *)kernel_loadaddr, &destlen, kernel_image,
ds->window = (Bytef *) ZALLOC(dest, ds->w_size, 2*sizeof(Byte));
Bytef *buf,
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;
register Bytef *scan = s->window + s->strstart; /* current string */
register Bytef *match; /* matched string */
register Bytef *strend = s->window + s->strstart + MAX_MATCH;
extern void zmemcpy(Bytef* dest, const Bytef* source, uInt len);
extern int zmemcmp(const Bytef* s1, const Bytef* s2, uInt len);
extern void zmemzero(Bytef* dest, uInt len);
typedef uLong (ZEXPORT *check_func)(uLong check, const Bytef *buf,
const Bytef *d, /* dictionary */
const Bytef *dictionary,
Bytef *p; /* pointer to bytes */
Bytef *pending_buf; /* output still pending */
Bytef *pending_out; /* next pending byte to output to the stream */
Bytef *window;
Bytef *window; /* sliding window */
Bytef *end; /* one byte after sliding window */
Bytef *read; /* window read pointer */
Bytef *write; /* window write pointer */
z->adler = s->check = (*s->checkfn)(0L, (const Bytef *)Z_NULL, 0);
if ((s->window = (Bytef *)ZALLOC(z, 1, w)) == Z_NULL)
Bytef *p; /* input data pointer */
Bytef *q; /* output window write pointer */
void inflate_set_dictionary(inflate_blocks_statef *s, const Bytef *d, uInt n)
Bytef *p; /* input data pointer */
Bytef *q; /* output window write pointer */
Bytef *p; /* input data pointer */
Bytef *q; /* output window write pointer */
Bytef *f; /* pointer to copy strings from */
Bytef *p;
Bytef *q;
Bytef *p; /* input data pointer */
Bytef *q; /* output window write pointer */
Bytef *r; /* copy source pointer */
Bytef* dest;
const Bytef* source;
const Bytef* s1;
const Bytef* s2;
Bytef* dest;
uLong ZEXPORT adler32(uLong adler, const Bytef *buf, uInt len)
local int read_buf(z_streamp strm, Bytef *buf, unsigned size);
zmemzero((Bytef *)s->head, (unsigned)(s->hash_size-1)*sizeof(*s->head));
s->window = (Bytef *) ZALLOC(strm, s->w_size, 2*sizeof(Byte));
const Bytef *dictionary,
ZEXTERN uLong ZEXPORT adler32(uLong, const Bytef *, uInt);
ZEXTERN uLong ZEXPORT crc32(uLong, const Bytef *, uInt);
Bytef *next_in; /* next input byte */
Bytef *next_out; /* next output byte should be put there */
ZEXTERN int ZEXPORT deflateSetDictionary(z_streamp, const Bytef *, uInt);
ZEXTERN int ZEXPORT inflateSetDictionary(z_streamp, const Bytef *, uInt);
ZEXTERN int ZEXPORT compress(Bytef *, uLongf *, const Bytef *, uLong);
ZEXTERN int ZEXPORT compress2(Bytef *, uLongf *, const Bytef *,
ZEXTERN int ZEXPORT uncompress(Bytef *, uLongf *, const Bytef *, uLong);
crc = crc32(crc, (const Bytef *)outbufp, (unsigned)wr);
crc = crc32(crc, (const Bytef *)inbufp, (unsigned)in_size);