Home | History | Annotate | Download | only in zlib

Lines Matching refs:gzhead

271     s->gzhead = Z_NULL;
395 strm->state->gzhead = head;
513 if (s->gzhead != Z_NULL) { /* user-supplied gzip header */
514 if (s->gzhead->extra != Z_NULL)
515 wraplen += 2 + s->gzhead->extra_len;
516 str = s->gzhead->name;
521 str = s->gzhead->comment;
526 if (s->gzhead->hcrc)
612 if (s->gzhead == Z_NULL) {
625 put_byte(s, (s->gzhead->text ? 1 : 0) +
626 (s->gzhead->hcrc ? 2 : 0) +
627 (s->gzhead->extra == Z_NULL ? 0 : 4) +
628 (s->gzhead->name == Z_NULL ? 0 : 8) +
629 (s->gzhead->comment == Z_NULL ? 0 : 16)
631 put_byte(s, (Byte)(s->gzhead->time & 0xff));
632 put_byte(s, (Byte)((s->gzhead->time >> 8) & 0xff));
633 put_byte(s, (Byte)((s->gzhead->time >> 16) & 0xff));
634 put_byte(s, (Byte)((s->gzhead->time >> 24) & 0xff));
638 put_byte(s, s->gzhead->os & 0xff);
639 if (s->gzhead->extra != Z_NULL) {
640 put_byte(s, s->gzhead->extra_len & 0xff);
641 put_byte(s, (s->gzhead->extra_len >> 8) & 0xff);
643 if (s->gzhead->hcrc)
681 if (s->gzhead->extra != Z_NULL) {
684 while (s->gzindex < (s->gzhead->extra_len & 0xffff)) {
686 if (s->gzhead->hcrc && s->pending > beg)
694 put_byte(s, s->gzhead->extra[s->gzindex]);
697 if (s->gzhead->hcrc && s->pending > beg)
700 if (s->gzindex == s->gzhead->extra_len) {
709 if (s->gzhead->name != Z_NULL) {
715 if (s->gzhead->hcrc && s->pending > beg)
725 val = s->gzhead->name[s->gzindex++];
728 if (s->gzhead->hcrc && s->pending > beg)
740 if (s->gzhead->comment != Z_NULL) {
746 if (s->gzhead->hcrc && s->pending > beg)
756 val = s->gzhead->comment[s->gzindex++];
759 if (s->gzhead->hcrc && s->pending > beg)
769 if (s->gzhead->hcrc) {