Lines Matching refs:CodedInputStream
36 pub struct CodedInputStream<'a> { struct
42 impl<'a> CodedInputStream<'a> { argument
46 pub fn new(read: &'a mut dyn Read) -> CodedInputStream<'a> { in new()
47 CodedInputStream::from_buf_read_iter(BufReadIter::from_read(read)) in new()
53 pub fn from_buffered_reader(buf_read: &'a mut dyn BufRead) -> CodedInputStream<'a> { in from_buffered_reader()
54 CodedInputStream::from_buf_read_iter(BufReadIter::from_buf_read(buf_read)) in from_buffered_reader()
58 pub fn from_bytes(bytes: &'a [u8]) -> CodedInputStream<'a> { in from_bytes()
59 CodedInputStream::from_buf_read_iter(BufReadIter::from_byte_slice(bytes)) in from_bytes()
68 pub fn from_carllerche_bytes(bytes: &'a Bytes) -> CodedInputStream<'a> { in from_carllerche_bytes()
69 CodedInputStream::from_buf_read_iter(BufReadIter::from_bytes(bytes)) in from_carllerche_bytes()
72 fn from_buf_read_iter(source: BufReadIter<'a>) -> CodedInputStream<'a> { in from_buf_read_iter()
73 CodedInputStream { in from_buf_read_iter()
690 impl<'a> Read for CodedInputStream<'a> { implementation
696 impl<'a> BufRead for CodedInputStream<'a> { implementation
711 F: FnOnce(&mut CodedInputStream) -> ProtobufResult<T>; in with_coded_input_stream()
717 F: FnOnce(&mut CodedInputStream) -> ProtobufResult<T>, in with_coded_input_stream()
719 let mut is = CodedInputStream::new(self); in with_coded_input_stream()
729 F: FnOnce(&mut CodedInputStream) -> ProtobufResult<T>, in with_coded_input_stream()
731 let mut is = CodedInputStream::from_buffered_reader(self); in with_coded_input_stream()
741 F: FnOnce(&mut CodedInputStream) -> ProtobufResult<T>, in with_coded_input_stream()
743 let mut is = CodedInputStream::from_bytes(self); in with_coded_input_stream()
754 F: FnOnce(&mut CodedInputStream) -> ProtobufResult<T>, in with_coded_input_stream()
756 let mut is = CodedInputStream::from_carllerche_bytes(self); in with_coded_input_stream()
771 use super::CodedInputStream;
779 F: FnMut(&mut CodedInputStream), in test_read_partial() argument
783 let mut is = CodedInputStream::from_buffered_reader(&mut reader as &mut dyn BufRead); in test_read_partial()
790 F: FnMut(&mut CodedInputStream), in test_read() argument
802 F: FnMut(&mut CodedInputStream) -> ProtobufResult<V>, in test_read_v()
959 let mut is = CodedInputStream::new(&mut slice); in test_input_stream_read_raw_bytes_into_huge()