Lines Matching refs:window
38 * creation of window when not needed, minimize use of window when it is
59 * - Fix bug in reuse of allocated window after inflateReset()
72 * - Rearrange window copies in inflate_fast() for speed and simplification
73 * - Unroll last copy for window match in inflate_fast()
74 * - Use local copies of window variables in inflate_fast() for speed
81 * programs like gzip and unzip -- uses window as output buffer to avoid
82 * window copying
94 * - Changed type of window in inflateBackInit() to unsigned char *
212 state->window = Z_NULL;
339 Update the window with the last wsize (normally 32K) bytes written before
340 returning. If window does not exist yet, create it. This is only called
341 when a window is already in use, or when output has been written during this
343 It is also called to create a window for dictionary data when a dictionary
347 advantage, since only the last 32K of output is copied to the sliding window
361 /* if it hasn't been done already, allocate space for the window */
362 if (state->window == Z_NULL) {
363 state->window = (unsigned char FAR *)
366 if (state->window == Z_NULL) return 1;
369 /* if window not in use yet, initialize */
376 /* copy state->wsize or less output bytes into the circular window */
379 zmemcpy(state->window, strm->next_out - state->wsize, state->wsize);
386 zmemcpy(state->window + state->write, strm->next_out - copy, dist);
389 zmemcpy(state->window, strm->next_out - copy, copy);
567 When there is a window, goto inf_leave will update the window with the last
569 and there is no window currently, goto inf_leave will create one and copy
570 output to the window for the next call of inflate().
576 the allocation of and copying into a sliding window until necessary, which
652 strm->msg = (char *)"invalid window size";
1078 if (state->offset > copy) { /* copy from window */
1082 from = state->window + (state->wsize - copy);
1085 from = state->window + (state->write - copy);
1159 error. Call updatewindow() to create and/or update the window state.
1191 if (state->window != Z_NULL) ZFREE(strm, state->window);
1220 /* copy dictionary to window */
1226 zmemcpy(state->window, dictionary + dictLength - state->wsize,
1231 zmemcpy(state->window + state->wsize - dictLength, dictionary,
1358 unsigned char FAR *window;
1371 window = Z_NULL;
1372 if (state->window != Z_NULL) {
1373 window = (unsigned char FAR *)
1375 if (window == Z_NULL) {
1390 if (window != Z_NULL) {
1392 zmemcpy(window, state->window, wsize);
1394 copy->window = window;