Lines Matching refs:copy
98 unsigned copy));
399 local int updatewindow(strm, end, copy) in updatewindow() argument
402 unsigned copy;
425 if (copy >= state->wsize) {
432 if (dist > copy) dist = copy;
433 zmemcpy(state->window + state->wnext, end - copy, dist);
434 copy -= dist;
435 if (copy) {
436 zmemcpy(state->window, end - copy, copy);
437 state->wnext = copy;
636 unsigned copy; /* number of stored or match bytes to copy */ local
765 copy = state->length;
766 if (copy > have) copy = have;
767 if (copy) {
773 len + copy > state->head->extra_max ?
774 state->head->extra_max - len : copy);
777 state->check = crc32(state->check, next, copy);
778 have -= copy;
779 next += copy;
780 state->length -= copy;
790 copy = 0;
792 len = (unsigned)(next[copy++]);
797 } while (len && copy < have);
799 state->check = crc32(state->check, next, copy);
800 have -= copy;
801 next += copy;
812 copy = 0;
814 len = (unsigned)(next[copy++]);
819 } while (len && copy < have);
821 state->check = crc32(state->check, next, copy);
822 have -= copy;
823 next += copy;
920 copy = state->length;
921 if (copy) {
922 if (copy > have) copy = have;
923 if (copy > left) copy = left;
924 if (copy == 0) goto inf_leave;
925 zmemcpy(put, next, copy);
926 have -= copy;
927 next += copy;
928 left -= copy;
929 put += copy;
930 state->length -= copy;
998 copy = 3 + BITS(2);
1005 copy = 3 + BITS(3);
1012 copy = 11 + BITS(7);
1015 if (state->have + copy > state->nlen + state->ndist) {
1020 while (copy--)
1172 copy = out - left;
1173 if (state->offset > copy) { /* copy from window */
1174 copy = state->offset - copy;
1175 if (copy > state->whave) {
1183 copy -= state->whave;
1184 if (copy > state->length) copy = state->length;
1185 if (copy > left) copy = left;
1186 left -= copy;
1187 state->length -= copy;
1190 } while (--copy);
1195 if (copy > state->wnext) {
1196 copy -= state->wnext;
1197 from = state->window + (state->wsize - copy);
1200 from = state->window + (state->wnext - copy);
1201 if (copy > state->length) copy = state->length;
1205 copy = state->length;
1207 if (copy > left) copy = left;
1208 left -= copy;
1209 state->length -= copy;
1212 } while (--copy);
1500 struct inflate_state FAR *copy; local
1510 copy = (struct inflate_state FAR *)
1512 if (copy == Z_NULL) return Z_MEM_ERROR;
1518 ZFREE(source, copy);
1525 zmemcpy((voidpf)copy, (voidpf)state, sizeof(struct inflate_state));
1526 copy->strm = dest;
1529 copy->lencode = copy->codes + (state->lencode - state->codes);
1530 copy->distcode = copy->codes + (state->distcode - state->codes);
1532 copy->next = copy->codes + (state->next - state->codes);
1537 copy->window = window;
1538 dest->state = (struct internal_state FAR *)copy;