Home | History | Annotate | Download | only in zlib

Lines Matching refs:gzhead

272     s->gzhead = Z_NULL;
401 strm->state->gzhead = head;
519 if (s->gzhead != Z_NULL) { /* user-supplied gzip header */
520 if (s->gzhead->extra != Z_NULL)
521 wraplen += 2 + s->gzhead->extra_len;
522 str = s->gzhead->name;
527 str = s->gzhead->comment;
532 if (s->gzhead->hcrc)
620 if (s->gzhead == Z_NULL) {
633 put_byte(s, (s->gzhead->text ? 1 : 0) +
634 (s->gzhead->hcrc ? 2 : 0) +
635 (s->gzhead->extra == Z_NULL ? 0 : 4) +
636 (s->gzhead->name == Z_NULL ? 0 : 8) +
637 (s->gzhead->comment == Z_NULL ? 0 : 16)
639 put_byte(s, (Byte)(s->gzhead->time & 0xff));
640 put_byte(s, (Byte)((s->gzhead->time >> 8) & 0xff));
641 put_byte(s, (Byte)((s->gzhead->time >> 16) & 0xff));
642 put_byte(s, (Byte)((s->gzhead->time >> 24) & 0xff));
646 put_byte(s, s->gzhead->os & 0xff);
647 if (s->gzhead->extra != Z_NULL) {
648 put_byte(s, s->gzhead->extra_len & 0xff);
649 put_byte(s, (s->gzhead->extra_len >> 8) & 0xff);
651 if (s->gzhead->hcrc)
689 if (s->gzhead->extra != Z_NULL) {
692 while (s->gzindex < (s->gzhead->extra_len & 0xffff)) {
694 if (s->gzhead->hcrc && s->pending > beg)
702 put_byte(s, s->gzhead->extra[s->gzindex]);
705 if (s->gzhead->hcrc && s->pending > beg)
708 if (s->gzindex == s->gzhead->extra_len) {
717 if (s->gzhead->name != Z_NULL) {
723 if (s->gzhead->hcrc && s->pending > beg)
733 val = s->gzhead->name[s->gzindex++];
736 if (s->gzhead->hcrc && s->pending > beg)
748 if (s->gzhead->comment != Z_NULL) {
754 if (s->gzhead->hcrc && s->pending > beg)
764 val = s->gzhead->comment[s->gzindex++];
767 if (s->gzhead->hcrc && s->pending > beg)
777 if (s->gzhead->hcrc) {