get_base_offset

Function get_base_offset 

Source
pub fn get_base_offset<D: AsRef<[u8]> + ?Sized>(data: &D) -> Result<u64>
Available on crate features yuris and yuris-arc only.
Expand description

Find the YPF archive base offset inside a PE (EXE) file.

Searches the PE overlay for the “YSER” header signature at 0x10-aligned boundaries, then reads the 32-bit header size field at offset+4 and returns YSER_offset + header_size as the start of the YPF data.