Searched refs:write_sparse_image (Results 1 – 2 of 2) sorted by relevance
/bootable/libbootloader/gbl/libgbl/src/fastboot/ |
D | sparse.rs | 138 pub fn write_sparse_image<F>(sparse_img: &mut [u8], mut write: F) -> Result<u64, CommandError> in write_sparse_image() function 287 write_sparse_image(&mut sparse.to_vec()[..], |off, data| { in test_sparse_write() 304 write_sparse_image(&mut sparse.to_vec()[..], |off, data| { in test_sparse_write_non_default_block_size() 325 assert!(write_sparse_image(&mut sparse[..], |_, _| panic!()).is_err()); in test_sparse_invalid_magic() 334 assert!(write_sparse_image(&mut sparse[..], |_, _| panic!()).is_err()); in test_sparse_invalid_major_version() 343 assert!(write_sparse_image(&mut sparse[..], |_, _| panic!()).is_err()); in test_sparse_invalid_minor_version()
|
D | mod.rs | 27 use sparse::{is_sparse_image, write_sparse_image}; 199 Ok(_) => write_sparse_image(utils.take_download_buffer().0, |off, data| { in flash()
|