Lines Matching refs:blob
49 self.blob, in write_at()
154 self.blob, in raw_read_at()
207 let mut blob = db.blob_open(DatabaseName::Main, "test_table", "content", rowid, false)?; in test_pos_io() localVariable
209 blob.seek(std::io::SeekFrom::Start(1)).unwrap(); in test_pos_io()
212 blob.write_at(&one2ten, 0).unwrap(); in test_pos_io()
215 blob.read_at_exact(&mut s, 0).unwrap(); in test_pos_io()
217 assert!(blob.read_at_exact(&mut s, 1).is_err()); in test_pos_io()
219 blob.read_at_exact(&mut s, 0).unwrap(); in test_pos_io()
223 blob.read_at_exact(&mut fives, 0).unwrap(); in test_pos_io()
226 blob.read_at_exact(&mut fives, 5).unwrap(); in test_pos_io()
228 assert!(blob.read_at_exact(&mut fives, 7).is_err()); in test_pos_io()
229 assert!(blob.read_at_exact(&mut fives, 12).is_err()); in test_pos_io()
230 assert!(blob.read_at_exact(&mut fives, 10).is_err()); in test_pos_io()
231 assert!(blob.read_at_exact(&mut fives, i32::MAX as usize).is_err()); in test_pos_io()
232 assert!(blob in test_pos_io()
237 blob.read_at_exact(&mut [], 10).unwrap(); in test_pos_io()
238 blob.read_at_exact(&mut [], 0).unwrap(); in test_pos_io()
239 blob.read_at_exact(&mut [], 5).unwrap(); in test_pos_io()
241 blob.write_all_at(&[16, 17, 18, 19, 20], 5).unwrap(); in test_pos_io()
242 blob.read_at_exact(&mut s, 0).unwrap(); in test_pos_io()
245 assert!(blob.write_at(&[100, 99, 98, 97, 96], 6).is_err()); in test_pos_io()
246 assert!(blob in test_pos_io()
249 assert!(blob in test_pos_io()
253 blob.read_at_exact(&mut s, 0).unwrap(); in test_pos_io()
258 let read = blob.raw_read_at_exact(&mut s2, 0).unwrap(); in test_pos_io()
265 blob.raw_read_at_exact(&mut empty, 0).unwrap().as_ptr(), in test_pos_io()
268 assert!(blob.raw_read_at_exact(&mut s2, 5).is_err()); in test_pos_io()
270 let end_pos = blob.seek(std::io::SeekFrom::Current(0)).unwrap(); in test_pos_io()