#[repr(C)]pub struct FatArch64 {
pub cputype: U32<BigEndian>,
pub cpusubtype: U32<BigEndian>,
pub offset: U64<BigEndian>,
pub size: U64<BigEndian>,
pub align: U32<BigEndian>,
pub reserved: U32<BigEndian>,
}
Fields§
§cputype: U32<BigEndian>
cpu specifier (int)
cpusubtype: U32<BigEndian>
machine specifier (int)
offset: U64<BigEndian>
file offset to this object file
size: U64<BigEndian>
size of this object file
align: U32<BigEndian>
alignment as a power of 2
reserved: U32<BigEndian>
reserved
Trait Implementations§
source§impl FatArch for FatArch64
impl FatArch for FatArch64
type Word = u64
const MAGIC: u32 = 3_405_691_583u32
fn cputype(&self) -> u32
fn cpusubtype(&self) -> u32
fn offset(&self) -> Self::Word
fn size(&self) -> Self::Word
fn align(&self) -> u32
fn architecture(&self) -> Architecture
fn file_range(&self) -> (u64, u64)
fn data<'data, R: ReadRef<'data>>(&self, file: R) -> Result<&'data [u8]>
impl Copy for FatArch64
impl Pod for FatArch64
Auto Trait Implementations§
impl Freeze for FatArch64
impl RefUnwindSafe for FatArch64
impl Send for FatArch64
impl Sync for FatArch64
impl Unpin for FatArch64
impl UnwindSafe for FatArch64
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)