Lines Matching refs:ds
1021 deflate_state *ds;
1034 ds = (deflate_state *) ZALLOC(dest, 1, sizeof(deflate_state));
1035 if (ds == Z_NULL) return Z_MEM_ERROR;
1036 dest->state = (struct internal_state FAR *) ds;
1037 zmemcpy((voidpf)ds, (voidpf)ss, sizeof(deflate_state));
1038 ds->strm = dest;
1040 ds->window = (Bytef *) ZALLOC(dest, ds->w_size, 2*sizeof(Byte));
1041 ds->prev = (Posf *) ZALLOC(dest, ds->w_size, sizeof(Pos));
1042 ds->head = (Posf *) ZALLOC(dest, ds->hash_size, sizeof(Pos));
1043 overlay = (ushf *) ZALLOC(dest, ds->lit_bufsize, sizeof(ush)+2);
1044 ds->pending_buf = (uchf *) overlay;
1046 if (ds->window == Z_NULL || ds->prev == Z_NULL || ds->head == Z_NULL ||
1047 ds->pending_buf == Z_NULL) {
1052 zmemcpy(ds->window, ss->window, ds->w_size * 2 * sizeof(Byte));
1053 zmemcpy((voidpf)ds->prev, (voidpf)ss->prev, ds->w_size * sizeof(Pos));
1054 zmemcpy((voidpf)ds->head, (voidpf)ss->head, ds->hash_size * sizeof(Pos));
1055 zmemcpy(ds->pending_buf, ss->pending_buf, (uInt)ds->pending_buf_size);
1057 ds->pending_out = ds->pending_buf + (ss->pending_out - ss->pending_buf);
1058 ds->d_buf = overlay + ds->lit_bufsize/sizeof(ush);
1059 ds->l_buf = ds->pending_buf + (1+sizeof(ush))*ds->lit_bufsize;
1061 ds->l_desc.dyn_tree = ds->dyn_ltree;
1062 ds->d_desc.dyn_tree = ds->dyn_dtree;
1063 ds->bl_desc.dyn_tree = ds->bl_tree;