Lines Matching full:copy

103     unsigned copy, dist;  in updatewindow()  local
122 /* copy state->wsize or less output bytes into the circular window */ in updatewindow()
123 copy = out - strm->avail_out; in updatewindow()
124 if (copy >= state->wsize) { in updatewindow()
131 if (dist > copy) dist = copy; in updatewindow()
132 zmemcpy(state->window + state->write, strm->next_out - copy, dist); in updatewindow()
133 copy -= dist; in updatewindow()
134 if (copy) { in updatewindow()
135 zmemcpy(state->window, strm->next_out - copy, copy); in updatewindow()
136 state->write = copy; in updatewindow()
315 and there is no window currently, goto inf_leave will create one and copy
337 unsigned copy; /* number of stored or match bytes to copy */ in inflate() local
338 unsigned char FAR *from; /* where to copy match bytes from */ in inflate()
341 unsigned len; /* length to copy for repeats, bits to drop */ in inflate()
454 copy = state->length; in inflate()
455 if (copy > have) copy = have; in inflate()
456 if (copy) { in inflate()
461 len + copy > state->head->extra_max ? in inflate()
462 state->head->extra_max - len : copy); in inflate()
465 state->check = crc32(state->check, next, copy); in inflate()
466 have -= copy; in inflate()
467 next += copy; in inflate()
468 state->length -= copy; in inflate()
477 copy = 0; in inflate()
479 len = (unsigned)(next[copy++]); in inflate()
484 } while (len && copy < have); in inflate()
486 state->check = crc32(state->check, next, copy); in inflate()
487 have -= copy; in inflate()
488 next += copy; in inflate()
498 copy = 0; in inflate()
500 len = (unsigned)(next[copy++]); in inflate()
505 } while (len && copy < have); in inflate()
507 state->check = crc32(state->check, next, copy); in inflate()
508 have -= copy; in inflate()
509 next += copy; in inflate()
592 state->mode = COPY; in inflate()
593 case COPY: in inflate()
594 copy = state->length; in inflate()
595 if (copy) { in inflate()
596 if (copy > have) copy = have; in inflate()
597 if (copy > left) copy = left; in inflate()
598 if (copy == 0) goto inf_leave; in inflate()
599 zmemcpy(put, next, copy); in inflate()
600 have -= copy; in inflate()
601 next += copy; in inflate()
602 left -= copy; in inflate()
603 put += copy; in inflate()
604 state->length -= copy; in inflate()
671 copy = 3 + BITS(2); in inflate()
678 copy = 3 + BITS(3); in inflate()
685 copy = 11 + BITS(7); in inflate()
688 if (state->have + copy > state->nlen + state->ndist) { in inflate()
693 while (copy--) in inflate()
822 copy = out - left; in inflate()
823 if (state->offset > copy) { /* copy from window */ in inflate()
824 copy = state->offset - copy; in inflate()
825 if (copy > state->write) { in inflate()
826 copy -= state->write; in inflate()
827 from = state->window + (state->wsize - copy); in inflate()
830 from = state->window + (state->write - copy); in inflate()
831 if (copy > state->length) copy = state->length; in inflate()
833 else { /* copy from output */ in inflate()
835 copy = state->length; in inflate()
837 if (copy > left) copy = left; in inflate()
838 left -= copy; in inflate()
839 state->length -= copy; in inflate()
842 } while (--copy); in inflate()