Lines Matching refs:copy

2547     unsigned copy, dist;  local
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;
2784 unsigned copy; /* number of stored or match bytes to copy */ local
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;
3280 copy = state->length;
3282 if (copy > left) copy = left;
3283 left -= copy;
3284 state->length -= copy;
3287 } while (--copy);
3549 struct inflate_state FAR *copy; local
3560 copy = (struct inflate_state FAR *)
3562 if (copy == Z_NULL) return Z_MEM_ERROR;
3568 ZFREE(source, copy);
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;
4588 copy(char* t, const char* f, char* e) in copy() function
4640 b = copy(b, "ksh.exe ", e); in sear_exec()
4642 b = copy(b, "./", e); in sear_exec()
4644 b = copy(b, cmd, e); in sear_exec()
4649 b = copy(b, " \"", e); in sear_exec()
4650 b = copy(b, a, e); in sear_exec()
4651 b = copy(b, "\"", e); in sear_exec()
4657 b = copy(b, cmd, e); in sear_exec()
4658 b = copy(b, " -- ", e); in sear_exec()
4659 b = copy(b, operands, e); in sear_exec()