Lines Matching refs:pack
254 let buf = want.pack(vec![0; 1], &mut Some(HashMap::new()), 1)?; in test_question_pack_unpack()
321 let result = input.pack(vec![], &mut Some(HashMap::new()), 0); in test_name_pack_unpack()
361 let buf = name.pack(vec![], &mut compression, 0)?; in test_incompressible_name()
362 let buf = name.pack(buf, &mut compression, 0)?; in test_incompressible_name()
473 let b = want.pack(vec![], &mut None, 0)?; in test_srv_pack_unpack()
499 let b = want.pack()?; in test_dns_pack_unpack()
539 let buf = msg.pack()?; in test_skip_all()
562 let buf = msg.pack()?; in test_skip_each()
605 let buf = msg.pack()?; in test_skip_after_read()
738 if let Err(got) = msg.pack() { in test_too_many_records()
778 let buf = want.pack(vec![], &mut Some(HashMap::new()), 0)?; in test_very_long_txt()
802 if let Err(err) = rb.pack(vec![], &mut Some(HashMap::new()), 0) { in test_too_long_txt()
1043 let want = msg.pack()?; in test_builder()
1131 if let Err(err) = m.pack() { in test_resource_pack()
1153 let (hb, _) = r.header.pack(vec![], &mut None, 0)?; in test_resource_pack_length()
1154 let buf = r.pack(vec![], &mut None, 0)?; in test_resource_pack_length()
1290 let w = tt_m.pack()?; in test_option_pack_unpack()