[][src]Struct goblin::mach::load_command::TwolevelHint

#[repr(C)]
pub struct TwolevelHint {
    pub isub_image: u64,
    pub itoc: [u8; 24],
}

The entries in the two-level namespace lookup hints table are twolevel_hint structs. These provide hints to the dynamic link editor where to start looking for an undefined symbol in a two-level namespace image. The isub_image field is an index into the sub-images (sub-frameworks and sub-umbrellas list) that made up the two-level image that the undefined symbol was found in when it was built by the static link editor. If isub-image is 0 the the symbol is expected to be defined in library and not in the sub-images. If isub-image is non-zero it is an index into the array of sub-images for the umbrella with the first index in the sub-images being

  1. The array of sub-images is the ordered list of sub-images of the umbrella that would be searched for a symbol that has the umbrella recorded as its primary library. The table of contents index is an index into the library's table of contents. This is used as the starting point of the binary search or a directed linear search.

Fields

isub_image: u64

index into the sub images

itoc: [u8; 24]

24 bit field index into the table of contents

Trait Implementations

impl Copy for TwolevelHint[src]

impl Clone for TwolevelHint[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for TwolevelHint[src]

impl FromCtx<Endian, [u8]> for TwolevelHint[src]

impl<'a> TryFromCtx<'a, Endian, [u8]> for TwolevelHint where
    TwolevelHint: 'a, 
[src]

type Error = Error

type Size = usize

impl<'a> IntoCtx<Endian, [u8]> for &'a TwolevelHint[src]

impl IntoCtx<Endian, [u8]> for TwolevelHint[src]

impl<'a> TryIntoCtx<Endian, [u8]> for &'a TwolevelHint[src]

type Error = Error

type Size = usize

impl TryIntoCtx<Endian, [u8]> for TwolevelHint[src]

type Error = Error

type Size = usize

impl SizeWith<Endian> for TwolevelHint[src]

type Units = usize

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]