Lines Matching refs:zalloc
240 if (strm->zalloc == (alloc_func)0) {
244 strm->zalloc = zcalloc;
277 s = (deflate_state *) ZALLOC(strm, 1, sizeof(deflate_state));
293 s->window = (Bytef *) ZALLOC(strm, s->w_size, 2*sizeof(Byte));
294 s->prev = (Posf *) ZALLOC(strm, s->w_size, sizeof(Pos));
295 s->head = (Posf *) ZALLOC(strm, s->hash_size, sizeof(Pos));
301 overlay = (ushf *) ZALLOC(strm, s->lit_bufsize, sizeof(ush)+2);
398 strm->zalloc == (alloc_func)0 || strm->zfree == (free_func)0) {
1032 ds = (deflate_state *) ZALLOC(dest, 1, sizeof(deflate_state));
1038 ds->window = (Bytef *) ZALLOC(dest, ds->w_size, 2*sizeof(Byte));
1039 ds->prev = (Posf *) ZALLOC(dest, ds->w_size, sizeof(Pos));
1040 ds->head = (Posf *) ZALLOC(dest, ds->hash_size, sizeof(Pos));
1041 overlay = (ushf *) ZALLOC(dest, ds->lit_bufsize, sizeof(ush)+2);