Lines Matching refs:copy

31 "[c:cat|uncompress?Uncompress the standard input and copy it to the standard"
1596 COPY, /* i/o: waiting for input or output to copy stored block */
1604 MATCH, /* o: waiting for output space to copy string */
1645 unsigned long check; /* protected copy of check value */
1646 unsigned long total; /* protected copy of output count */
1658 unsigned length; /* literal or length of data to copy */
1659 unsigned offset; /* distance back to copy string from */
2089 /* window position, window bytes to copy */
2092 unsigned char FAR *from; /* where to copy match from */
2094 /* copy state to local variables */
2184 if (dist > op) { /* see if copy from window */
2244 from = out - dist; /* copy direct from output */
2306 - Special case for distance > 1 copies to do overlapped load and store copy
2308 - Deferring match copy and interspersed it with decoding subsequent codes
2311 - Larger unrolled copy loops (three is about right)
2547 unsigned copy, dist;
2566 /* copy state->wsize or less output bytes into the circular window */
2567 copy = out - strm->avail_out;
2568 if (copy >= state->wsize) {
2575 if (dist > copy) dist = copy;
2576 zmemcpy(state->window + state->write, strm->next_out - copy, dist);
2577 copy -= dist;
2578 if (copy) {
2579 zmemcpy(state->window, strm->next_out - copy, copy);
2580 state->write = copy;
2759 and there is no window currently, goto inf_leave will create one and copy
2784 unsigned copy; /* number of stored or match bytes to copy */
2785 unsigned char FAR *from; /* where to copy match bytes from */
2788 unsigned len; /* length to copy for repeats, bits to drop */
2901 copy = state->length;
2902 if (copy > have) copy = have;
2903 if (copy) {
2908 len + copy > state->head->extra_max ?
2909 state->head->extra_max - len : copy);
2912 state->check = crc32(state->check, next, copy);
2913 have -= copy;
2914 next += copy;
2915 state->length -= copy;
2924 copy = 0;
2926 len = (unsigned)(next[copy++]);
2931 } while (len && copy < have);
2933 state->check = crc32(state->check, next, copy);
2934 have -= copy;
2935 next += copy;
2945 copy = 0;
2947 len = (unsigned)(next[copy++]);
2952 } while (len && copy < have);
2954 state->check = crc32(state->check, next, copy);
2955 have -= copy;
2956 next += copy;
3040 copy = state->length;
3041 if (copy) {
3042 if (copy > have) copy = have;
3043 if (copy > left) copy = left;
3044 if (copy == 0) goto inf_leave;
3045 zmemcpy(put, next, copy);
3046 have -= copy;
3047 next += copy;
3048 left -= copy;
3049 put += copy;
3050 state->length -= copy;
3117 copy = 3 + BITS(2);
3124 copy = 3 + BITS(3);
3131 copy = 11 + BITS(7);
3134 if (state->have + copy > state->nlen + state->ndist) {
3139 while (copy--)
3267 copy = out - left;
3268 if (state->offset > copy) { /* copy from window */
3269 copy = state->offset - copy;
3270 if (copy > state->write) {
3271 copy -= state->write;
3272 from = state->window + (state->wsize - copy);
3275 from = state->window + (state->write - copy);
3276 if (copy > state->length) copy = state->length;
3278 else { /* copy from output */
3280 copy = state->length;
3282 if (copy > left) copy = left;
3283 left -= copy;
3284 state->length -= copy;
3287 } while (--copy);
3410 /* copy dictionary to window */
3549 struct inflate_state FAR *copy;
3560 copy = (struct inflate_state FAR *)
3562 if (copy == Z_NULL) return Z_MEM_ERROR;
3568 ZFREE(source, copy);
3573 /* copy state */
3575 zmemcpy(copy, state, sizeof(struct inflate_state));
3578 copy->lencode = copy->codes + (state->lencode - state->codes);
3579 copy->distcode = copy->codes + (state->distcode - state->codes);
3581 copy->next = copy->codes + (state->next - state->codes);
3586 copy->window = window;
3587 dest->state = (struct internal_state FAR *)copy;
3685 char fmode[80]; /* copy of mode, without the compression level */
3741 *m++ = *p; /* copy the mode */
4583 * copy t to f but no farther than e
4588 copy(char* t, const char* f, char* e)
4640 b = copy(b, "ksh.exe ", e);
4642 b = copy(b, "./", e);
4644 b = copy(b, cmd, e);
4649 b = copy(b, " \"", e);
4650 b = copy(b, a, e);
4651 b = copy(b, "\"", e);
4657 b = copy(b, cmd, e);
4658 b = copy(b, " -- ", e);
4659 b = copy(b, operands, e);