Lines Matching refs:copy

99                            unsigned copy));
398 local int updatewindow(strm, end, copy) in updatewindow() argument
401 unsigned copy;
424 if (copy >= state->wsize) {
431 if (dist > copy) dist = copy;
432 zmemcpy(state->window + state->wnext, end - copy, dist);
433 copy -= dist;
434 if (copy) {
435 zmemcpy(state->window, end - copy, copy);
436 state->wnext = copy;
635 unsigned copy; /* number of stored or match bytes to copy */ local
764 copy = state->length;
765 if (copy > have) copy = have;
766 if (copy) {
771 len + copy > state->head->extra_max ?
772 state->head->extra_max - len : copy);
775 state->check = crc32(state->check, next, copy);
776 have -= copy;
777 next += copy;
778 state->length -= copy;
788 copy = 0;
790 len = (unsigned)(next[copy++]);
795 } while (len && copy < have);
797 state->check = crc32(state->check, next, copy);
798 have -= copy;
799 next += copy;
810 copy = 0;
812 len = (unsigned)(next[copy++]);
817 } while (len && copy < have);
819 state->check = crc32(state->check, next, copy);
820 have -= copy;
821 next += copy;
918 copy = state->length;
919 if (copy) {
920 if (copy > have) copy = have;
921 if (copy > left) copy = left;
922 if (copy == 0) goto inf_leave;
923 zmemcpy(put, next, copy);
924 have -= copy;
925 next += copy;
926 left -= copy;
927 put += copy;
928 state->length -= copy;
996 copy = 3 + BITS(2);
1003 copy = 3 + BITS(3);
1010 copy = 11 + BITS(7);
1013 if (state->have + copy > state->nlen + state->ndist) {
1018 while (copy--)
1170 copy = out - left;
1171 if (state->offset > copy) { /* copy from window */
1172 copy = state->offset - copy;
1173 if (copy > state->whave) {
1181 copy -= state->whave;
1182 if (copy > state->length) copy = state->length;
1183 if (copy > left) copy = left;
1184 left -= copy;
1185 state->length -= copy;
1188 } while (--copy);
1193 if (copy > state->wnext) {
1194 copy -= state->wnext;
1195 from = state->window + (state->wsize - copy);
1198 from = state->window + (state->wnext - copy);
1199 if (copy > state->length) copy = state->length;
1203 copy = state->length;
1205 if (copy > left) copy = left;
1206 left -= copy;
1207 state->length -= copy;
1210 } while (--copy);
1498 struct inflate_state FAR *copy; local
1508 copy = (struct inflate_state FAR *)
1510 if (copy == Z_NULL) return Z_MEM_ERROR;
1516 ZFREE(source, copy);
1523 zmemcpy((voidpf)copy, (voidpf)state, sizeof(struct inflate_state));
1524 copy->strm = dest;
1527 copy->lencode = copy->codes + (state->lencode - state->codes);
1528 copy->distcode = copy->codes + (state->distcode - state->codes);
1530 copy->next = copy->codes + (state->next - state->codes);
1535 copy->window = window;
1536 dest->state = (struct internal_state FAR *)copy;