Lines Matching refs:window

11  *   creation of window when not needed, minimize use of window when it is
32 * - Fix bug in reuse of allocated window after inflateReset()
45 * - Rearrange window copies in inflate_fast() for speed and simplification
46 * - Unroll last copy for window match in inflate_fast()
47 * - Use local copies of window variables in inflate_fast() for speed
54 * programs like gzip and unzip -- uses window as output buffer to avoid
55 * window copying
67 * - Changed type of window in inflateBackInit() to unsigned char *
166 /* set number of window bits, free window if different */
169 if (state->window != Z_NULL && state->wbits != (unsigned)windowBits) {
170 ZFREE(strm, state->window);
171 state->window = Z_NULL;
213 state->window = Z_NULL;
366 Update the window with the last wsize (normally 32K) bytes written before
367 returning. If window does not exist yet, create it. This is only called
368 when a window is already in use, or when output has been written during this
370 It is also called to create a window for dictionary data when a dictionary
374 advantage, since only the last 32K of output is copied to the sliding window
389 /* if it hasn't been done already, allocate space for the window */
390 if (state->window == Z_NULL) {
391 state->window = (unsigned char FAR *)
394 if (state->window == Z_NULL) return 1;
397 /* if window not in use yet, initialize */
404 /* copy state->wsize or less output bytes into the circular window */
406 zmemcpy(state->window, end - state->wsize, state->wsize);
413 zmemcpy(state->window + state->wnext, end - copy, dist);
416 zmemcpy(state->window, end - copy, copy);
589 When there is a window, goto inf_leave will update the window with the last
591 and there is no window currently, goto inf_leave will create one and copy
592 output to the window for the next call of inflate().
598 the allocation of and copying into a sliding window until necessary, which
676 strm->msg = (char *)"invalid window size";
1126 if (state->offset > copy) { /* copy from window */
1150 from = state->window + (state->wsize - copy);
1153 from = state->window + (state->wnext - copy);
1227 error. Call updatewindow() to create and/or update the window state.
1261 if (state->window != Z_NULL) ZFREE(strm, state->window);
1281 zmemcpy(dictionary, state->window + state->wnext,
1284 state->window, state->wnext);
1314 /* copy dictionary to window using updatewindow(), which will amend the
1444 unsigned char FAR *window;
1457 window = Z_NULL;
1458 if (state->window != Z_NULL) {
1459 window = (unsigned char FAR *)
1461 if (window == Z_NULL) {
1476 if (window != Z_NULL) {
1478 zmemcpy(window, state->window, wsize);
1480 copy->window = window;