Function eos_rs::api::sir0::translate_sir0
source · pub unsafe fn translate_sir0(src: *mut u8) -> *mut u8
Expand description
Translates the offsets in a SIR0 file into NDS memory addresses, changes the magic number to SirO (opened), and returns a pointer to the first pointer specified in the SIR0 header (beginning of the data).
Safety
The caller needs to make sure src
points to a valid SIR0 file buffer.