Searched refs:copy_to_bytes (Results 1 – 3 of 3) sorted by relevance
48 fn copy_to_bytes(&mut self, len: usize) -> Bytes { in copy_to_bytes() method51 self.buf.copy_to_bytes(len) in copy_to_bytes()130 assert_eq!(buf.copy_to_bytes(5).len(), 5); in decode_buf()
130 frame.map_data(|mut buf| buf.copy_to_bytes(buf.remaining())) in new()
211 .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()