pub struct ExecutableBuilder { /* private fields */ }Expand description
Mach-O 可执行文件构建器
提供了构建 Mach-O 可执行文件的高级接口。
Implementations§
Source§impl ExecutableBuilder
impl ExecutableBuilder
Sourcepub fn set_entry_point(&mut self, entry_point: u64) -> &mut Self
pub fn set_entry_point(&mut self, entry_point: u64) -> &mut Self
设置程序入口点
Sourcepub fn add_load_command(&mut self, cmd: u32, data: Vec<u8>) -> &mut Self
pub fn add_load_command(&mut self, cmd: u32, data: Vec<u8>) -> &mut Self
添加一个加载命令
Sourcepub fn build(self) -> Result<MachoProgram, GaiaError>
pub fn build(self) -> Result<MachoProgram, GaiaError>
构建 MachoProgram
Trait Implementations§
Source§impl Debug for ExecutableBuilder
impl Debug for ExecutableBuilder
Auto Trait Implementations§
impl Freeze for ExecutableBuilder
impl RefUnwindSafe for ExecutableBuilder
impl Send for ExecutableBuilder
impl Sync for ExecutableBuilder
impl Unpin for ExecutableBuilder
impl UnsafeUnpin for ExecutableBuilder
impl UnwindSafe for ExecutableBuilder
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