Searched refs:read_struct (Results 1 – 3 of 3) sorted by relevance
25 pub unsafe fn read_struct<T: Copy, F: Read>(f: &mut F, out: &mut T) -> Result<()> { in read_struct() function86 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()
69 base::read_struct(kernel_image, &mut params).map_err(|_| Error::ReadBootParams)?; in load_bzimage()
87 base::read_struct(kernel_image, &mut ehdr).map_err(|_| Error::ReadElfHeader)?; in load_kernel()