Lines Matching refs:buf
100 fn marshal_to(&self, mut buf: &mut [u8]) -> Result<usize> { in marshal_to()
101 if buf.remaining_mut() < self.marshal_size() { in marshal_to()
113 buf.put_u32(self.source); in marshal_to()
116 let n = it.marshal_to(buf)?; in marshal_to()
117 buf = &mut buf[n..]; in marshal_to()
121 buf.put_u8(SdesType::SdesEnd as u8); in marshal_to()
124 put_padding(buf, self.raw_size()); in marshal_to()
199 fn marshal_to(&self, mut buf: &mut [u8]) -> Result<usize> { in marshal_to()
212 if buf.remaining_mut() < self.marshal_size() { in marshal_to()
216 buf.put_u8(self.sdes_type as u8); in marshal_to()
221 buf.put_u8(self.text.len() as u8); in marshal_to()
222 buf.put(self.text.clone()); in marshal_to()
341 fn marshal_to(&self, mut buf: &mut [u8]) -> Result<usize> { in marshal_to()
346 if buf.remaining_mut() < self.marshal_size() { in marshal_to()
369 let n = h.marshal_to(buf)?; in marshal_to()
370 buf = &mut buf[n..]; in marshal_to()
373 let n = c.marshal_to(buf)?; in marshal_to()
374 buf = &mut buf[n..]; in marshal_to()
378 put_padding(buf, self.raw_size()); in marshal_to()