Home | History | Annotate | Download | only in examples

Lines Matching defs:last

271 /* Copy the compressed data from name, zeroing the last block bit of the last
273 boundary. If clr is false, then the last block becomes the last block of
282 int pos; /* where the "last block" bit is in byte */
283 int last; /* true if processing the last block */
308 /* inflate and copy compressed data, clear last-block bit if requested */
312 last = start[0] & 1;
313 if (last && clr)
341 /* if that was the last block, then done */
342 if (last)
345 /* number of unused bits in last byte */
348 /* find the next last-block bit */
350 /* next last-block bit is in last used byte */
352 last = strm.next_in[-1] & pos;
353 if (last && clr)
357 /* next last-block bit is in next unused byte */
365 last = strm.next_in[0] & 1;
366 if (last && clr)
379 last = in->next[-1];
381 /* already at byte boundary, or last file: write last byte */
382 putc(last, out);
384 /* append empty blocks to last byte */
385 last &= ((0x100 >> pos) - 1); /* assure unused bits are zero */
388 putc(last, out);
397 putc(last | 8, out);
398 last = 0;
400 putc(last | 0x20, out);
401 last = 0;
403 putc(last | 0x80, out);
418 /* write trailer if this is the last gzip file */