Lines Matching refs:msg
121 pub(crate) fn pack(&self, mut msg: Vec<u8>) -> Vec<u8> { in pack()
122 msg = pack_uint16(msg, self.id); in pack()
123 msg = pack_uint16(msg, self.bits); in pack()
124 msg = pack_uint16(msg, self.questions); in pack()
125 msg = pack_uint16(msg, self.answers); in pack()
126 msg = pack_uint16(msg, self.authorities); in pack()
127 msg = pack_uint16(msg, self.additionals); in pack()
128 msg in pack()
131 pub(crate) fn unpack(&mut self, msg: &[u8], off: usize) -> Result<usize> { in unpack()
132 let (id, off) = unpack_uint16(msg, off)?; in unpack()
135 let (bits, off) = unpack_uint16(msg, off)?; in unpack()
138 let (questions, off) = unpack_uint16(msg, off)?; in unpack()
141 let (answers, off) = unpack_uint16(msg, off)?; in unpack()
144 let (authorities, off) = unpack_uint16(msg, off)?; in unpack()
147 let (additionals, off) = unpack_uint16(msg, off)?; in unpack()