Function pmd_sir0::write_sir0_header[][src]

pub fn write_sir0_header(
    file: &mut impl Write,
    header_offset: u32,
    offset_offset: u32
) -> Result<(), IOError>
Expand description

write the sir0 header at the current position of the file. It should be written at the beggining of the file, but require to know the header and offset list offset.

It have a constant size of 12 bytes, so you should reserve 12 bytes at the beggining of the file, write it, write the header at the end of it, call write_sir0_footer, seek at the beggining of the file and call this function.