Lines Matching refs:blob
49 self.blob, in write_at()
155 self.blob, in raw_read_at()
213 let mut blob = db in test_pos_io() localVariable
217 blob.seek(std::io::SeekFrom::Start(1)).unwrap(); in test_pos_io()
220 blob.write_at(&one2ten, 0).unwrap(); in test_pos_io()
223 blob.read_at_exact(&mut s, 0).unwrap(); in test_pos_io()
225 assert!(blob.read_at_exact(&mut s, 1).is_err()); in test_pos_io()
227 blob.read_at_exact(&mut s, 0).unwrap(); in test_pos_io()
231 blob.read_at_exact(&mut fives, 0).unwrap(); in test_pos_io()
234 blob.read_at_exact(&mut fives, 5).unwrap(); in test_pos_io()
236 assert!(blob.read_at_exact(&mut fives, 7).is_err()); in test_pos_io()
237 assert!(blob.read_at_exact(&mut fives, 12).is_err()); in test_pos_io()
238 assert!(blob.read_at_exact(&mut fives, 10).is_err()); in test_pos_io()
239 assert!(blob.read_at_exact(&mut fives, i32::MAX as usize).is_err()); in test_pos_io()
240 assert!(blob in test_pos_io()
245 blob.read_at_exact(&mut [], 10).unwrap(); in test_pos_io()
246 blob.read_at_exact(&mut [], 0).unwrap(); in test_pos_io()
247 blob.read_at_exact(&mut [], 5).unwrap(); in test_pos_io()
249 blob.write_all_at(&[16, 17, 18, 19, 20], 5).unwrap(); in test_pos_io()
250 blob.read_at_exact(&mut s, 0).unwrap(); in test_pos_io()
253 assert!(blob.write_at(&[100, 99, 98, 97, 96], 6).is_err()); in test_pos_io()
254 assert!(blob in test_pos_io()
257 assert!(blob in test_pos_io()
261 blob.read_at_exact(&mut s, 0).unwrap(); in test_pos_io()
266 let read = blob.raw_read_at_exact(&mut s2, 0).unwrap(); in test_pos_io()
273 blob.raw_read_at_exact(&mut empty, 0).unwrap().as_ptr(), in test_pos_io()
276 assert!(blob.raw_read_at_exact(&mut s2, 5).is_err()); in test_pos_io()
278 let end_pos = blob.seek(std::io::SeekFrom::Current(0)).unwrap(); in test_pos_io()