pub struct ElfWriter<W> { /* private fields */ }Expand description
ELF 文件生成器的通用接口
Implementations§
Source§impl<W: Write> ElfWriter<W>
impl<W: Write> ElfWriter<W>
Sourcepub fn write_elf_file(&mut self, elf_file: &ElfFile) -> Result<(), GaiaError>where
W: Seek,
pub fn write_elf_file(&mut self, elf_file: &ElfFile) -> Result<(), GaiaError>where
W: Seek,
将 ELF 文件写入字节数组
Sourcepub fn write_elf_header(
&mut self,
header: &ElfHeader64,
) -> Result<(), GaiaError>
pub fn write_elf_header( &mut self, header: &ElfHeader64, ) -> Result<(), GaiaError>
写入 ELF 头(64位)
Sourcepub fn write_program_header(
&mut self,
header: &ProgramHeader64,
) -> Result<(), GaiaError>
pub fn write_program_header( &mut self, header: &ProgramHeader64, ) -> Result<(), GaiaError>
写入程序头(64位)
Sourcepub fn write_section_header(
&mut self,
header: &SectionHeader64,
) -> Result<(), GaiaError>
pub fn write_section_header( &mut self, header: &SectionHeader64, ) -> Result<(), GaiaError>
写入节头(64位)
Trait Implementations§
Auto Trait Implementations§
impl<W> Freeze for ElfWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for ElfWriter<W>where
W: RefUnwindSafe,
impl<W> Send for ElfWriter<W>where
W: Send,
impl<W> Sync for ElfWriter<W>where
W: Sync,
impl<W> Unpin for ElfWriter<W>where
W: Unpin,
impl<W> UnwindSafe for ElfWriter<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