Lines Matching refs:len
95 && matches!(is_aligned(buffer.len().into(), self.block_size().into()), Ok(true)) in check_alignment()
127 num_blocks: u64::try_from(self.storage.len()).unwrap() / self.block_size, in info()
181 true => buffer.clone_from_slice(&self.storage[offset..][..buffer.len()]), in check_status()
182 _ => self.storage[offset..][..buffer.len()].clone_from_slice(buffer), in check_status()
253 Self::Data(slice) => slice.len(), in size()
399 assert!(storage.len() % (self.block_size as usize) == 0); in build()
414 assert!(name.len() < GPT_NAME_LEN_U16);
424 let delta = (block_size - store.len() % block_size) % block_size; in pad_to_block_size()
447 assert!(partitions.len() <= gpt_max_entries); in partitions_to_disk_data()
448 let entry_blocks: u64 = ((SafeNum::from(partitions.len()) * std::mem::size_of::<GptEntry>()) in partitions_to_disk_data()
465 entries_count: std::cmp::min(partitions.len(), gpt_max_entries) as u32, in partitions_to_disk_data()
522 let backup_entries_block = store.len() / block_size; in partitions_to_disk_data()