Lines Matching refs:header
1 use super::header::*;
28 pub header: HeaderInternal, field
56 header: HeaderInternal { in new()
126 Section::Questions => (&mut self.header.questions, Error::ErrTooManyQuestions), in increment_section_count()
127 Section::Answers => (&mut self.header.answers, Error::ErrTooManyAnswers), in increment_section_count()
128 Section::Authorities => (&mut self.header.authorities, Error::ErrTooManyAuthorities), in increment_section_count()
129 Section::Additionals => (&mut self.header.additionals, Error::ErrTooManyAdditionals), in increment_section_count()
176 r.header.typ = body.real_type(); in add_resource()
182 let (mut msg, len_off) = r.header.pack(msg, &mut self.compression, self.start)?; in add_resource()
186 r.header.fix_len(&mut msg, len_off, pre_len)?; in add_resource()
203 let buf = self.header.pack(vec![]); in finish()