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 *
154 /* set number of window bits, free window if different */
157 if (state->window != Z_NULL && state->wbits != (unsigned)windowBits) {
158 ZFREE(strm, state->window);
159 state->window = Z_NULL;
192 state->window = Z_NULL;
345 Update the window with the last wsize (normally 32K) bytes written before
346 returning. If window does not exist yet, create it. This is only called
347 when a window is already in use, or when output has been written during this
349 It is also called to create a window for dictionary data when a dictionary
353 advantage, since only the last 32K of output is copied to the sliding window
367 /* if it hasn't been done already, allocate space for the window */
368 if (state->window == Z_NULL) {
369 state->window = (unsigned char FAR *)
372 if (state->window == Z_NULL) return 1;
375 /* if window not in use yet, initialize */
382 /* copy state->wsize or less output bytes into the circular window */
385 zmemcpy(state->window, strm->next_out - state->wsize, state->wsize);
392 zmemcpy(state->window + state->wnext, strm->next_out - copy, dist);
395 zmemcpy(state->window, strm->next_out - copy, copy);
573 When there is a window, goto inf_leave will update the window with the last
575 and there is no window currently, goto inf_leave will create one and copy
576 output to the window for the next call of inflate().
582 the allocation of and copying into a sliding window until necessary, which
660 strm->msg = (char *)"invalid window size";
1111 if (state->offset > copy) { /* copy from window */
1135 from = state->window + (state->wsize - copy);
1138 from = state->window + (state->wnext - copy);
1212 error. Call updatewindow() to create and/or update the window state.
1245 if (state->window != Z_NULL) ZFREE(strm, state->window);
1274 /* copy dictionary to window */
1280 zmemcpy(state->window, dictionary + dictLength - state->wsize,
1285 zmemcpy(state->window + state->wsize - dictLength, dictionary,
1412 unsigned char FAR *window;
1425 window = Z_NULL;
1426 if (state->window != Z_NULL) {
1427 window = (unsigned char FAR *)
1429 if (window == Z_NULL) {
1444 if (window != Z_NULL) {
1446 zmemcpy(window, state->window, wsize);
1448 copy->window = window;