Home | History | Annotate | Download | only in examples

Lines Matching defs:CHUNK

65 // Chunk size for buffered reads and for decompression. Twice this many bytes
67 #define CHUNK 16384
126 // Get the next chunk of input from in.
127 unsigned char dat[CHUNK];
128 strm.avail_in = fread(dat, 1, CHUNK, in);
131 more = strm.avail_in == CHUNK;
134 // Run that chunk of input through the inflate engine to exhaustion.
139 // block, trailer) is reached, or until all of the chunk is
145 unsigned char scrap[CHUNK];
146 strm.avail_out = CHUNK;
159 unsigned got = CHUNK - strm.avail_out;
164 // Continue to process this chunk until it is consumed, or