Lines Matching refs:len
89 c if c.len_utf8() <= buffer[index..].len() => { in name_to_str()
90 index += c.encode_utf8(&mut buffer[index..]).len() in name_to_str()
176 || buffer.len() < Self::required_buffer_size(max_entries)? in new_from_buffer()
445 dev.scratch = vec![0u8; dev.scratch.len() - 1]; in test_gpt_buffer_too_small()
464 dev.io.storage[disk.len() - 512..].fill(0); in test_load_gpt_primary()
513 dev.io.storage[512..512 + primary_header.len()].clone_from_slice(&primary_header); in test_load_gpt_incorrect_magic()
549 dev.io.storage[block_size..block_size + primary_header.len()] in test_load_gpt_non_max_entries()
553 dev.io.storage[disk.len() - block_size..].fill(0); in test_load_gpt_non_max_entries()
584 let mut actual_boot_a = vec![0u8; expect_boot_a.len()]; in test_gpt_read()
585 let mut actual_boot_b = vec![0u8; expect_boot_b.len()]; in test_gpt_read()
614 let mut actual_boot_a = vec![0u8; expect_boot_a.len()]; in test_gpt_write()
615 let mut actual_boot_b = vec![0u8; expect_boot_b.len()]; in test_gpt_write()
645 let mut boot_a = [0u8; include_bytes!("../test/boot_a.bin").len()]; in test_gpt_rw_overflow()
646 let mut boot_b = [0u8; include_bytes!("../test/boot_b.bin").len()]; in test_gpt_rw_overflow()