Searched refs:to_write (Results 1 – 4 of 4) sorted by relevance
/bootable/libbootloader/gbl/libstorage/src/ |
D | multi_blocks.rs | 277 let to_write = &mut data[off.try_into().unwrap()..]; in check_write_partition() localVariable 279 let mut out = vec![0u8; to_write.len()]; in check_write_partition() 280 devs.write_gpt_partition(part, off, to_write).unwrap(); in check_write_partition() 282 assert_eq!(out, to_write.to_vec()); in check_write_partition() 284 to_write.reverse(); in check_write_partition() 285 devs.write_gpt_partition(part, off, to_write).unwrap(); in check_write_partition() 287 assert_eq!(out, to_write.to_vec()); in check_write_partition()
|
D | non_blocking.rs | 641 let mut to_write = Some(&mut io_buffer[..]); in test_read() localVariable 645 blk_ex.write(1, &mut to_write, 1, 2).unwrap(); in test_read() 646 assert!(to_write.is_none()); in test_read() 708 let mut to_write = Some(&mut io_buffer[..]); in test_abort() localVariable 712 blk_ex.write(1, &mut to_write, 1, 2).unwrap(); in test_abort() 739 let mut to_write = Some(&mut io_buffer[..]); in read_write_error_on_busy() localVariable 746 blk_ex.write(1, &mut to_write, 1, 2).unwrap(); in read_write_error_on_busy()
|
/bootable/libbootloader/gbl/libgbl/src/fastboot/ |
D | sparse.rs | 186 let to_write = min(buffer_len, end - write_offset); in write_sparse_image() localVariable 187 write(write_offset, &mut buffer[..to_usize(to_write).unwrap()])?; in write_sparse_image() 188 write_offset += to_write; in write_sparse_image()
|
/bootable/libbootloader/gbl/libfastboot/src/ |
D | lib.rs | 938 let to_write = core::cmp::min(buf.len(), bytes.len()); in append() localVariable 939 buf[..to_write].clone_from_slice(&bytes[..to_write]); in append() 940 self.1 += to_write; in append()
|