Home
last modified time | relevance | path

Searched refs:copy_to_bytes (Results 1 – 3 of 3) sorted by relevance

/tonic/tonic/src/codec/
H A Dbuffer.rs48 fn copy_to_bytes(&mut self, len: usize) -> Bytes { in copy_to_bytes() method
51 self.buf.copy_to_bytes(len) in copy_to_bytes()
130 assert_eq!(buf.copy_to_bytes(5).len(), 5); in decode_buf()
H A Ddecode.rs130 frame.map_data(|mut buf| buf.copy_to_bytes(buf.remaining())) in new()
/tonic/tonic-web/src/
H A Dcall.rs211 .map_ok(|f| f.map_data(|mut d| d.copy_to_bytes(d.remaining()))) in poll_decode()
225 let mut res = data.copy_to_bytes(data.remaining()); in poll_encode()
297 let msg_buf = buf.copy_to_bytes(len); in poll_frame()
408 let trailer = temp_buf.copy_to_bytes(i - cursor_pos); in decode_trailers_frame()