Home
last modified time | relevance | path

Searched refs:read_struct (Results 1 – 3 of 3) sorted by relevance

/external/crosvm/sys_util/src/
Dstruct_util.rs25 pub unsafe fn read_struct<T: Copy, F: Read>(f: &mut F, out: &mut T) -> Result<()> { in read_struct() function
86 read_struct(&mut Cursor::new(source), &mut tr).unwrap(); in struct_basic_read()
109 assert!(read_struct(&mut Cursor::new(source), &mut tr).is_err()); in struct_read_past_end()
/external/crosvm/x86_64/src/
Dbzimage.rs69 base::read_struct(kernel_image, &mut params).map_err(|_| Error::ReadBootParams)?; in load_bzimage()
/external/crosvm/kernel_loader/src/
Dlib.rs87 base::read_struct(kernel_image, &mut ehdr).map_err(|_| Error::ReadElfHeader)?; in load_kernel()