Lines Matching refs:copy

98                            unsigned copy));
382 local int updatewindow(z_streamp strm, const Bytef *end, unsigned copy) in updatewindow() argument
405 if (copy >= state->wsize) { in updatewindow()
412 if (dist > copy) dist = copy; in updatewindow()
413 zmemcpy(state->window + state->wnext, end - copy, dist); in updatewindow()
414 copy -= dist; in updatewindow()
415 if (copy) { in updatewindow()
416 zmemcpy(state->window, end - copy, copy); in updatewindow()
417 state->wnext = copy; in updatewindow()
614 unsigned copy; /* number of stored or match bytes to copy */ in inflate() local
743 copy = state->length; in inflate()
744 if (copy > have) copy = have; in inflate()
745 if (copy) { in inflate()
751 len + copy > state->head->extra_max ? in inflate()
752 state->head->extra_max - len : copy); in inflate()
755 state->check = crc32(state->check, next, copy); in inflate()
756 have -= copy; in inflate()
757 next += copy; in inflate()
758 state->length -= copy; in inflate()
768 copy = 0; in inflate()
770 len = (unsigned)(next[copy++]); in inflate()
775 } while (len && copy < have); in inflate()
777 state->check = crc32(state->check, next, copy); in inflate()
778 have -= copy; in inflate()
779 next += copy; in inflate()
790 copy = 0; in inflate()
792 len = (unsigned)(next[copy++]); in inflate()
797 } while (len && copy < have); in inflate()
799 state->check = crc32(state->check, next, copy); in inflate()
800 have -= copy; in inflate()
801 next += copy; in inflate()
898 copy = state->length; in inflate()
899 if (copy) { in inflate()
900 if (copy > have) copy = have; in inflate()
901 if (copy > left) copy = left; in inflate()
902 if (copy == 0) goto inf_leave; in inflate()
903 zmemcpy(put, next, copy); in inflate()
904 have -= copy; in inflate()
905 next += copy; in inflate()
906 left -= copy; in inflate()
907 put += copy; in inflate()
908 state->length -= copy; in inflate()
976 copy = 3 + BITS(2); in inflate()
983 copy = 3 + BITS(3); in inflate()
990 copy = 11 + BITS(7); in inflate()
993 if (state->have + copy > state->nlen + state->ndist) { in inflate()
998 while (copy--) in inflate()
1150 copy = out - left; in inflate()
1151 if (state->offset > copy) { /* copy from window */ in inflate()
1152 copy = state->offset - copy; in inflate()
1153 if (copy > state->whave) { in inflate()
1161 copy -= state->whave; in inflate()
1162 if (copy > state->length) copy = state->length; in inflate()
1163 if (copy > left) copy = left; in inflate()
1164 left -= copy; in inflate()
1165 state->length -= copy; in inflate()
1168 } while (--copy); in inflate()
1173 if (copy > state->wnext) { in inflate()
1174 copy -= state->wnext; in inflate()
1175 from = state->window + (state->wsize - copy); in inflate()
1178 from = state->window + (state->wnext - copy); in inflate()
1179 if (copy > state->length) copy = state->length; in inflate()
1183 copy = state->length; in inflate()
1185 if (copy > left) copy = left; in inflate()
1186 left -= copy; in inflate()
1187 state->length -= copy; in inflate()
1190 } while (--copy); in inflate()
1465 struct inflate_state FAR *copy; in inflateCopy() local
1475 copy = (struct inflate_state FAR *) in inflateCopy()
1477 if (copy == Z_NULL) return Z_MEM_ERROR; in inflateCopy()
1483 ZFREE(source, copy); in inflateCopy()
1490 zmemcpy((voidpf)copy, (voidpf)state, sizeof(struct inflate_state)); in inflateCopy()
1491 copy->strm = dest; in inflateCopy()
1494 copy->lencode = copy->codes + (state->lencode - state->codes); in inflateCopy()
1495 copy->distcode = copy->codes + (state->distcode - state->codes); in inflateCopy()
1497 copy->next = copy->codes + (state->next - state->codes); in inflateCopy()
1502 copy->window = window; in inflateCopy()
1503 dest->state = (struct internal_state FAR *)copy; in inflateCopy()