Lines Matching defs:copy

20  * - Unroll direct copy to three copies per loop in inffast.c
37 * - Make MATCH copy in inflate() much faster for when inflate_fast() not used
46 * - Unroll last copy for window match in inflate_fast()
380 local int updatewindow(z_streamp strm, const Bytef *end, unsigned copy)
402 /* copy state->wsize or less output bytes into the circular window */
403 if (copy >= state->wsize) {
410 if (dist > copy) dist = copy;
411 zmemcpy(state->window + state->wnext, end - copy, dist);
412 copy -= dist;
413 if (copy) {
414 zmemcpy(state->window, end - copy, copy);
415 state->wnext = copy;
589 and there is no window currently, goto inf_leave will create one and copy
611 unsigned copy; /* number of stored or match bytes to copy */
612 unsigned char FAR *from; /* where to copy match bytes from */
615 unsigned len; /* length to copy for repeats, bits to drop */
766 copy = state->length;
767 if (copy > have)
769 copy = have;
771 if (copy) {
777 len + copy > state->head->extra_max ?
778 state->head->extra_max - len : copy);
782 state->check = crc32(state->check, next, copy);
784 have -= copy;
785 next += copy;
786 state->length -= copy;
799 copy = 0;
801 len = (unsigned)(next[copy++]);
806 } while (len && copy < have);
809 state->check = crc32(state->check, next, copy);
811 have -= copy;
812 next += copy;
831 copy = 0;
833 len = (unsigned)(next[copy++]);
840 } while (len && copy < have);
843 state->check = crc32(state->check, next, copy);
845 have -= copy;
846 next += copy;
954 copy = state->length;
955 if (copy) {
956 if (copy > have) copy = have;
957 if (copy > left) copy = left;
958 if (copy == 0) goto inf_leave;
959 zmemcpy(put, next, copy);
960 have -= copy;
961 next += copy;
962 left -= copy;
963 put += copy;
964 state->length -= copy;
1032 copy = 3 + BITS(2);
1039 copy = 3 + BITS(3);
1046 copy = 11 + BITS(7);
1049 if (state->have + copy > state->nlen + state->ndist) {
1054 while (copy--)
1229 copy = out - left;
1230 if (state->offset > copy) { /* copy from window */
1231 copy = state->offset - copy;
1232 if (copy > state->whave) {
1240 copy -= state->whave;
1241 if (copy > state->length)
1243 copy = state->length;
1245 if (copy > left)
1247 copy = left;
1249 left -= copy;
1250 state->length -= copy;
1253 } while (--copy);
1261 if (copy > state->wnext) {
1262 copy -= state->wnext;
1263 from = state->window + (state->wsize - copy);
1266 from = state->window + (state->wnext - copy);
1267 if (copy > state->length)
1269 copy = state->length;
1272 else { /* copy from output */
1274 copy = state->length;
1276 if (copy > left)
1278 copy = left;
1280 left -= copy;
1281 state->length -= copy;
1284 } while (--copy);
1414 /* copy dictionary */
1453 /* copy dictionary to window using updatewindow(), which will amend the
1604 struct inflate_state FAR *copy;
1616 copy = (struct inflate_state FAR *)
1618 if (copy == Z_NULL)
1627 ZFREE(source, copy);
1632 /* copy state */
1634 zmemcpy((voidpf)copy, (voidpf)state, sizeof(struct inflate_state));
1635 copy->strm = dest;
1638 copy->lencode = copy->codes + (state->lencode - state->codes);
1639 copy->distcode = copy->codes + (state->distcode - state->codes);
1641 copy->next = copy->codes + (state->next - state->codes);
1646 copy->window = window;
1647 dest->state = (struct internal_state FAR *)copy;