Lines Matching refs:Vec
19 let mut to_write = Vec::with_capacity(16 * 128); in test_writev()
30 let mut iovecs = Vec::new(); in test_writev()
46 let mut read_buf: Vec<u8> = iter::repeat(0u8).take(128 * 16).collect(); in test_writev()
71 let mut storage = Vec::new(); in test_readv()
80 let v: Vec<u8> = iter::repeat(0u8).take(vec_len).collect(); in test_readv()
84 let mut iovecs = Vec::with_capacity(storage.len()); in test_readv()
95 let mut read_buf = Vec::with_capacity(to_write.len()); in test_readv()
115 let mut file_content = Vec::new(); in test_pwrite()
136 let file_content: Vec<u8> = (0..64).collect(); in test_pread()
141 let expected: Vec<_> = (16..32).collect(); in test_pread()
150 let to_write: Vec<u8> = (0..128).collect(); in test_pwritev()
151 let expected: Vec<u8> = [vec![0; 100], to_write.clone()].concat(); in test_pwritev()
175 let mut contents = Vec::new(); in test_pwritev()
185 let to_write: Vec<u8> = (0..200).collect(); in test_preadv()
186 let expected: Vec<u8> = (100..200).collect(); in test_preadv()
201 let mut buffers: Vec<Vec<u8>> = vec![vec![0; 24], vec![0; 1], vec![0; 75]]; in test_preadv()
205 let mut iovecs: Vec<_> = buffers in test_preadv()