[−][src]Function pelite::pe64::headers_mut
pub unsafe fn headers_mut(
image: &mut [u8]
) -> (&mut IMAGE_DOS_HEADER, &mut IMAGE_NT_HEADERS, &mut [IMAGE_DATA_DIRECTORY], &mut [IMAGE_SECTION_HEADER])
Returns the PE headers as mutable borrows.
Safety
No checks of any kind are performed, before calling this function ensure the byte slice points to a valid PE image by running it through the PeFile::from_bytes
constructor.