Struct goblin::mach::header::Header64 [−][src]
A 64-bit Mach-o header
Fields
magic: u32
mach magic number identifier
cputype: u32
cpu specifier
cpusubtype: u32
machine specifier
filetype: u32
type of file
ncmds: u32
number of load commands
sizeofcmds: u32
the size of all the load commands
flags: u32
flags
reserved: u32
Implementations
impl Header64
[src]
pub fn from_bytes(bytes: &[u8; 32]) -> &Self
[src]
Transmutes the given byte array into the corresponding 64-bit Mach-o header
pub fn size(&self) -> usize
[src]
Trait Implementations
impl Clone for Header64
[src]
impl Copy for Header64
[src]
impl Debug for Header64
[src]
impl Default for Header64
[src]
impl From<Header> for Header64
[src]
impl From<Header64> for Header
[src]
impl Plain for Header64
[src]
pub fn from_bytes(bytes: &[u8]) -> Result<&Self, Error>
[src]
pub fn slice_from_bytes(bytes: &[u8]) -> Result<&[Self], Error>
[src]
pub fn slice_from_bytes_len(bytes: &[u8], len: usize) -> Result<&[Self], Error>
[src]
pub fn from_mut_bytes(bytes: &mut [u8]) -> Result<&mut Self, Error>
[src]
pub fn slice_from_mut_bytes(bytes: &mut [u8]) -> Result<&mut [Self], Error>
[src]
pub fn slice_from_mut_bytes_len(
bytes: &mut [u8],
len: usize
) -> Result<&mut [Self], Error>
[src]
bytes: &mut [u8],
len: usize
) -> Result<&mut [Self], Error>
pub fn copy_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
[src]
impl SizeWith<Endian> for Header64
[src]
impl<'a> TryFromCtx<'a, Endian, [u8]> for Header64 where
Header64: 'a,
[src]
Header64: 'a,
type Error = Error
fn try_from_ctx(
src: &'a [u8],
ctx: Endian
) -> Result<(Self, usize), Self::Error>
[src]
src: &'a [u8],
ctx: Endian
) -> Result<(Self, usize), Self::Error>
impl<'a> TryIntoCtx<Endian, [u8]> for &'a Header64
[src]
type Error = Error
fn try_into_ctx(self, dst: &mut [u8], ctx: Endian) -> Result<usize, Self::Error>
[src]
impl TryIntoCtx<Endian, [u8]> for Header64
[src]
Auto Trait Implementations
impl RefUnwindSafe for Header64
impl Send for Header64
impl Sync for Header64
impl Unpin for Header64
impl UnwindSafe for Header64
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,