Skip to main content

checked_header

Function checked_header 

pub(crate) fn checked_header(
    data: &[u8],
    magic: u32,
) -> Result<&[u8; 64], FormatError>
Expand description

Returns the first header of data after checking its magic number and its CRC, in the order of the kernel.