pub struct ExeWriter<W> { /* private fields */ }Expand description
EXE file writer
Implementations§
Trait Implementations§
Source§impl<W: Write + Seek> PeWriter<W> for ExeWriter<W>
impl<W: Write + Seek> PeWriter<W> for ExeWriter<W>
Source§fn get_writer(&mut self) -> &mut W
fn get_writer(&mut self) -> &mut W
Get a mutable reference to the writer
Source§fn write_program(&mut self, program: &PeProgram) -> Result<(), GaiaError>
fn write_program(&mut self, program: &PeProgram) -> Result<(), GaiaError>
Write the PE program to the stream (common implementation)
Source§fn write_import_table(&mut self, program: &PeProgram) -> Result<(), GaiaError>
fn write_import_table(&mut self, program: &PeProgram) -> Result<(), GaiaError>
Write the import table (common implementation)
Source§fn write_dos_header(&mut self, dos_header: &DosHeader) -> Result<(), GaiaError>
fn write_dos_header(&mut self, dos_header: &DosHeader) -> Result<(), GaiaError>
Write DOS header (common implementation)
Source§fn write_nt_header(&mut self, nt_header: &NtHeader) -> Result<(), GaiaError>
fn write_nt_header(&mut self, nt_header: &NtHeader) -> Result<(), GaiaError>
Write NT header (common implementation)
Source§fn write_coff_header(
&mut self,
coff_header: &CoffHeader,
) -> Result<(), GaiaError>
fn write_coff_header( &mut self, coff_header: &CoffHeader, ) -> Result<(), GaiaError>
Write COFF header (common implementation)
Source§fn write_optional_header(
&mut self,
optional_header: &OptionalHeader,
) -> Result<(), GaiaError>
fn write_optional_header( &mut self, optional_header: &OptionalHeader, ) -> Result<(), GaiaError>
Write optional header (common implementation)
Source§fn write_data_directory(
&mut self,
data_dir: &DataDirectory,
) -> Result<(), GaiaError>
fn write_data_directory( &mut self, data_dir: &DataDirectory, ) -> Result<(), GaiaError>
Write data directory (common implementation)
Source§fn write_section_header(&mut self, section: &PeSection) -> Result<(), GaiaError>
fn write_section_header(&mut self, section: &PeSection) -> Result<(), GaiaError>
Write section header (common implementation)
Auto Trait Implementations§
impl<W> Freeze for ExeWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for ExeWriter<W>where
W: RefUnwindSafe,
impl<W> Send for ExeWriter<W>where
W: Send,
impl<W> Sync for ExeWriter<W>where
W: Sync,
impl<W> Unpin for ExeWriter<W>where
W: Unpin,
impl<W> UnsafeUnpin for ExeWriter<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for ExeWriter<W>where
W: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more