Lines Matching full:copy

123     unsigned copy, dist;  in zlib_updatewindow()  local
127 /* copy state->wsize or less output bytes into the circular window */ in zlib_updatewindow()
128 copy = out - strm->avail_out; in zlib_updatewindow()
129 if (copy >= state->wsize) { in zlib_updatewindow()
136 if (dist > copy) dist = copy; in zlib_updatewindow()
137 memcpy(state->window + state->write, strm->next_out - copy, dist); in zlib_updatewindow()
138 copy -= dist; in zlib_updatewindow()
139 if (copy) { in zlib_updatewindow()
140 memcpy(state->window, strm->next_out - copy, copy); in zlib_updatewindow()
141 state->write = copy; in zlib_updatewindow()
317 and there is no window currently, goto inf_leave will create one and copy
340 unsigned copy; /* number of stored or match bytes to copy */ in zlib_inflate() local
341 unsigned char *from; /* where to copy match bytes from */ in zlib_inflate()
344 unsigned len; /* length to copy for repeats, bits to drop */ in zlib_inflate()
448 state->mode = COPY; in zlib_inflate()
450 case COPY: in zlib_inflate()
451 copy = state->length; in zlib_inflate()
452 if (copy) { in zlib_inflate()
453 if (copy > have) copy = have; in zlib_inflate()
454 if (copy > left) copy = left; in zlib_inflate()
455 if (copy == 0) goto inf_leave; in zlib_inflate()
456 memcpy(put, next, copy); in zlib_inflate()
457 have -= copy; in zlib_inflate()
458 next += copy; in zlib_inflate()
459 left -= copy; in zlib_inflate()
460 put += copy; in zlib_inflate()
461 state->length -= copy; in zlib_inflate()
527 copy = 3 + BITS(2); in zlib_inflate()
534 copy = 3 + BITS(3); in zlib_inflate()
541 copy = 11 + BITS(7); in zlib_inflate()
544 if (state->have + copy > state->nlen + state->ndist) { in zlib_inflate()
549 while (copy--) in zlib_inflate()
675 copy = out - left; in zlib_inflate()
676 if (state->offset > copy) { /* copy from window */ in zlib_inflate()
677 copy = state->offset - copy; in zlib_inflate()
678 if (copy > state->write) { in zlib_inflate()
679 copy -= state->write; in zlib_inflate()
680 from = state->window + (state->wsize - copy); in zlib_inflate()
683 from = state->window + (state->write - copy); in zlib_inflate()
684 if (copy > state->length) copy = state->length; in zlib_inflate()
686 else { /* copy from output */ in zlib_inflate()
688 copy = state->length; in zlib_inflate()
690 if (copy > left) copy = left; in zlib_inflate()
691 left -= copy; in zlib_inflate()
692 state->length -= copy; in zlib_inflate()
695 } while (--copy); in zlib_inflate()