Lines Matching defs:window
13 * creation of window when not needed, minimize use of window when it is
34 * - Fix bug in reuse of allocated window after inflateReset()
47 * - Rearrange window copies in inflate_fast() for speed and simplification
48 * - Unroll last copy for window match in inflate_fast()
49 * - Use local copies of window variables in inflate_fast() for speed
56 * programs like gzip and unzip -- uses window as output buffer to avoid
57 * window copying
69 * - 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;
210 state->window = Z_NULL;
357 Update the window with the last wsize (normally 32K) bytes written before
358 returning. If window does not exist yet, create it. This is only called
359 when a window is already in use, or when output has been written during this
361 It is also called to create a window for dictionary data when a dictionary
365 advantage, since only the last 32K of output is copied to the sliding window
376 /* if it hasn't been done already, allocate space for the window */
377 if (state->window == Z_NULL) {
378 state->window = (unsigned char FAR *)
381 if (state->window == Z_NULL) return 1;
384 /* if window not in use yet, initialize */
391 /* copy state->wsize or less output bytes into the circular window */
393 zmemcpy(state->window, end - state->wsize, state->wsize);
400 zmemcpy(state->window + state->wnext, end - copy, dist);
403 zmemcpy(state->window, end - copy, copy);
576 When there is a window, goto inf_leave will update the window with the last
578 and there is no window currently, goto inf_leave will create one and copy
579 output to the window for the next call of inflate().
585 the allocation of and copying into a sliding window until necessary, which
668 strm->msg = __UNCONST("invalid window size");
1144 if (state->offset > copy) { /* copy from window */
1168 from = state->window + (state->wsize - copy);
1171 from = state->window + (state->wnext - copy);
1248 error. Call updatewindow() to create and/or update the window state.
1280 if (state->window != Z_NULL) ZFREE(strm, state->window);
1297 zmemcpy(dictionary, state->window + state->wnext,
1300 state->window, state->wnext);
1327 /* copy dictionary to window using updatewindow(), which will amend the
1451 unsigned char FAR *window;
1463 window = Z_NULL;
1464 if (state->window != Z_NULL) {
1465 window = (unsigned char FAR *)
1467 if (window == Z_NULL) {
1483 if (window != Z_NULL) {
1485 zmemcpy(window, state->window, wsize);
1487 copy->window = window;