Enum mach_object::OFile
[−]
[src]
pub enum OFile { MachFile { header: MachHeader, commands: Vec<MachCommand>, }, FatFile { magic: u32, files: Vec<(FatArch, OFile)>, }, ArFile { files: Vec<(ArHeader, OFile)>, }, SymDef { ranlibs: Vec<RanLib>, }, }
The abstract file block, including mach-o file, fat/universal file, archive file and symdef block
Variants
MachFile
Fields of MachFile
header: MachHeader | |
commands: Vec<MachCommand> |
FatFile
Fields of FatFile
magic: u32 | |
files: Vec<(FatArch, OFile)> |
ArFile
Fields of ArFile
files: Vec<(ArHeader, OFile)> |
SymDef
Fields of SymDef
ranlibs: Vec<RanLib> |
Methods
impl OFile
[src]
fn parse<T: AsRef<[u8]>>(buf: &mut Cursor<T>) -> Result<OFile, Error>
[src]
Parse a file base on its magic number
Trait Implementations
impl Debug for OFile
[src]
impl Clone for OFile
[src]
fn clone(&self) -> OFile
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more