Searched refs:read_struct_slice (Results 1 – 2 of 2) sorted by relevance
43 pub unsafe fn read_struct_slice<T: Copy, F: Read>(f: &mut F, len: usize) -> Result<Vec<T>> { in read_struct_slice() function146 let tr: Vec<TestRead> = unsafe { read_struct_slice(&mut Cursor::new(source), 3).unwrap() }; in struct_slice_read()
114 base::read_struct_slice(kernel_image, ehdr.e_phnum as usize) in load_kernel()