Lines Matching refs:Vec
32 buf: Vec<u8>, // Buffer for storing read bytes.
41 cache: Vec<u8>,
49 cache: Vec::new(), in new()
60 buf: Vec::with_capacity(1024), // Default size is 1024. in new()
209 fn cached_data(&mut self) -> Option<Vec<u8>> { in cached_data()
218 fn take_cached_data(&mut self) -> Option<Vec<u8>> { in take_cached_data()
231 vec: Vec<u8>,
236 fn new(vec: Vec<u8>) -> Self { in new()
302 let io = TestIo::new(Vec::new()); in ut_io_reader_new()
509 let io = TestIo::new(Vec::new()); in ut_io_reader_cached_len()
529 let io = TestIo::new(Vec::new()); in ut_io_reader_cached_slice()
562 let io = TestIo::new(Vec::new()); in ut_io_reader_cached_data()
566 assert_eq!(io_reader.cached_data(), Some(Vec::new())); in ut_io_reader_cached_data()
580 let io = TestIo::new(Vec::new()); in ut_io_reader_end_caching()
599 let io = TestIo::new(Vec::new()); in ut_io_reader_take_cached_data()
603 assert_eq!(io_reader.take_cached_data(), Some(Vec::new())); in ut_io_reader_take_cached_data()