pub struct ElfBuilder { /* private fields */ }Expand description
ELF 文件构建器
提供高级接口来构建 ELF 文件
Implementations§
Source§impl ElfBuilder
impl ElfBuilder
Sourcepub fn set_entry_point(&mut self, entry: u64) -> &mut Self
pub fn set_entry_point(&mut self, entry: u64) -> &mut Self
设置入口点
Sourcepub fn add_code_segment(&mut self, code: Vec<u8>) -> &mut Self
pub fn add_code_segment(&mut self, code: Vec<u8>) -> &mut Self
添加代码段
Trait Implementations§
Source§impl Debug for ElfBuilder
impl Debug for ElfBuilder
Auto Trait Implementations§
impl Freeze for ElfBuilder
impl RefUnwindSafe for ElfBuilder
impl Send for ElfBuilder
impl Sync for ElfBuilder
impl Unpin for ElfBuilder
impl UnwindSafe for ElfBuilder
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