Lines Matching refs:copy

8517 function updatewindow(strm, src, end, copy) {  argument
8531 if (copy >= state.wsize) {
8538 if (dist > copy) {
8539 dist = copy;
8542 utils.arraySet(state.window, src, end - copy, dist, state.wnext);
8543 copy -= dist;
8544 if (copy) {
8546 utils.arraySet(state.window, src, end - copy, copy, 0);
8547 state.wnext = copy;
8568 var copy; /* number of stored or match bytes to copy */
8800 copy = state.length;
8801 if (copy > have) { copy = have; }
8802 if (copy) {
8815 copy,
8824 state.check = crc32(state.check, input, copy, next);
8826 have -= copy;
8827 next += copy;
8828 state.length -= copy;
8838 copy = 0;
8841 len = input[next + copy++];
8847 } while (len && copy < have);
8850 state.check = crc32(state.check, input, copy, next);
8852 have -= copy;
8853 next += copy;
8865 copy = 0;
8867 len = input[next + copy++];
8873 } while (len && copy < have);
8875 state.check = crc32(state.check, input, copy, next);
8877 have -= copy;
8878 next += copy;
9035 copy = state.length;
9036 if (copy) {
9037 if (copy > have) { copy = have; }
9038 if (copy > left) { copy = left; }
9039 if (copy === 0) { break inf_leave; }
9041 utils.arraySet(output, input, next, copy, put);
9043 have -= copy;
9044 next += copy;
9045 left -= copy;
9046 put += copy;
9047 state.length -= copy;
9171 copy = 3 + (hold & 0x03);//BITS(2);
9192 copy = 3 + (hold & 0x07);//BITS(3);
9213 copy = 11 + (hold & 0x7f);//BITS(7);
9219 if (state.have + copy > state.nlen + state.ndist) {
9224 while (copy--) {
9481 copy = _out - left;
9482 if (state.offset > copy) { /* copy from window */
9483 copy = state.offset - copy;
9484 if (copy > state.whave) {
9506 if (copy > state.wnext) {
9507 copy -= state.wnext;
9508 from = state.wsize - copy;
9511 from = state.wnext - copy;
9513 if (copy > state.length) { copy = state.length; }
9519 copy = state.length;
9521 if (copy > left) { copy = left; }
9522 left -= copy;
9523 state.length -= copy;
9526 } while (--copy);