Lines Matching defs: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 *
164 /* set number of window bits, free window if different */
167 if (state->window != Z_NULL && state->wbits != (unsigned)windowBits) {
168 ZFREE(strm, state->window);
169 state->window = Z_NULL;
208 state->window = Z_NULL;
355 Update the window with the last wsize (normally 32K) bytes written before
356 returning. If window does not exist yet, create it. This is only called
357 when a window is already in use, or when output has been written during this
359 It is also called to create a window for dictionary data when a dictionary
363 advantage, since only the last 32K of output is copied to the sliding window
374 /* if it hasn't been done already, allocate space for the window */
375 if (state->window == Z_NULL) {
376 state->window = (unsigned char FAR *)
379 if (state->window == Z_NULL) return 1;
382 /* if window not in use yet, initialize */
389 /* copy state->wsize or less output bytes into the circular window */
391 zmemcpy(state->window, end - state->wsize, state->wsize);
398 zmemcpy(state->window + state->wnext, end - copy, dist);
401 zmemcpy(state->window, end - copy, copy);
574 When there is a window, goto inf_leave will update the window with the last
576 and there is no window currently, goto inf_leave will create one and copy
577 output to the window for the next call of inflate().
583 the allocation of and copying into a sliding window until necessary, which
659 strm->msg = (char *)"invalid window size";
1135 if (state->offset > copy) { /* copy from window */
1159 from = state->window + (state->wsize - copy);
1162 from = state->window + (state->wnext - copy);
1239 error. Call updatewindow() to create and/or update the window state.
1271 if (state->window != Z_NULL) ZFREE(strm, state->window);
1288 zmemcpy(dictionary, state->window + state->wnext,
1291 state->window, state->wnext);
1318 /* copy dictionary to window using updatewindow(), which will amend the
1442 unsigned char FAR *window;
1454 window = Z_NULL;
1455 if (state->window != Z_NULL) {
1456 window = (unsigned char FAR *)
1458 if (window == Z_NULL) {
1474 if (window != Z_NULL) {
1476 zmemcpy(window, state->window, wsize);
1478 copy->window = window;