Struct lief::pe::TLS

pub struct TLS<'a> { /* private fields */ }

Implementations§

§

impl TLS<'_>

pub fn callbacks(&self) -> Vec<u64>

List of callbacks associated with the current TLS

These functions are called before any other functions.

pub fn addressof_index(&self) -> u64

The location to receive the TLS index assigned by the loader

pub fn addressof_callbacks(&self) -> u64

Pointer to an array of TLS callback functions.

The array is null-terminated, so if there is no callback function this field points to 4 bytes set to zero.

See TLS::callbacks

pub fn sizeof_zero_fill(&self) -> u64

Size in bytes of the zero to be padded after the data specified by TLS::data_template

pub fn characteristics(&self) -> u64

The four bits [23:20] describe alignment info.

Possible values are those defined as IMAGE_SCN_ALIGN_*, which are also used to describe alignment of section in object files.

The other 28 bits are reserved for future use.

pub fn data_template(&self) -> &[u8]

The initial content used to initialize TLS data.

pub fn addressof_raw_data(&self) -> (u64, u64)

Range of addresses where the TLS::data_template is located.

pub fn section(&self) -> Option<Section<'_>>

The section where the TLS structure is located

pub fn directory(&self) -> Option<DataDirectory<'_>>

The data directory describing the TLS

Trait Implementations§

§

impl Debug for TLS<'_>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for TLS<'a>

§

impl<'a> !Send for TLS<'a>

§

impl<'a> !Sync for TLS<'a>

§

impl<'a> Unpin for TLS<'a>

§

impl<'a> UnwindSafe for TLS<'a>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.