Skip to main content

replace_card

Function replace_card 

Source
pub fn replace_card(
    image: &[u8],
    card: Option<&[u8]>,
    build: Option<&[u8]>,
) -> Result<Vec<u8>, FileError>
Expand description

Replace the card (and the build record) of a 0x06 image held in memory: the front is re-laid out with the new card region; every section is copied byte for byte. The content hash follows the card.