Lines Matching refs:u8
68 Pending(u64, u64, &'static mut [u8], bool),
79 pub storage: Vec<u8>,
89 pub fn new(block_size: u64, alignment: u64, data: Vec<u8>) -> Self { in new()
93 fn check_alignment(&mut self, buffer: &[u8]) -> bool { in check_alignment()
104 fn read_blocks(&mut self, blk_offset: u64, out: &mut [u8]) -> Result<(), BlockIoError> { in read_blocks()
109 fn write_blocks(&mut self, blk_offset: u64, data: &mut [u8]) -> Result<(), BlockIoError> { in write_blocks()
135 buffer: *mut [u8], in write_blocks() argument
155 buffer: *mut [u8], in read_blocks() argument
172 fn check_status(&mut self, buf: *mut [u8]) -> IoStatus { in check_status()
175 if std::ptr::eq(*buffer as *const [u8], buf as _) => in check_status()
213 pub scratch: Vec<u8>,
223 impl From<&[u8]> for TestBlockDevice {
224 fn from(data: &[u8]) -> Self { in from()
230 fn with(&mut self, f: &mut dyn FnMut(&mut dyn BlockIo, &mut [u8], u64)) { in with() argument
246 Data(&'a [u8]),
349 pub fn set_data(mut self, data: &'a [u8]) -> Self { in set_data()
423 fn pad_to_block_size(store: &mut Vec<u8>, block_size: usize) { in pad_to_block_size() argument
430 fn add_blocks(store: &mut Vec<u8>, data: &[u8], block_size: usize) { in add_blocks() argument
435 fn pad_bytes(store: &mut Vec<u8>, size: usize, block_size: usize) { in pad_bytes() argument
445 ) -> Vec<u8> { in partitions_to_disk_data() argument
486 entry.guid[0] = block as u8; in partitions_to_disk_data()
560 let data: [u8; 8] = [1, 2, 3, 4, 5, 6, 7, 8]; in test_builder_partitions()
561 let mut actual: [u8; 8] = Default::default(); in test_builder_partitions()