pub struct TlsData<'a> {
pub image_tls_directory: ImageTlsDirectory,
pub raw_data: Option<&'a [u8]>,
pub slot: Option<u32>,
pub callbacks: Vec<u64>,
}
Expand description
TLS information.
Fields§
§image_tls_directory: ImageTlsDirectory
TLS directory.
raw_data: Option<&'a [u8]>
Raw data of the TLS.
slot: Option<u32>
TLS index.
callbacks: Vec<u64>
TLS callbacks.
Implementations§
Source§impl<'a> TlsData<'a>
impl<'a> TlsData<'a>
pub fn parse( bytes: &'a [u8], image_base: u64, dd: &DataDirectory, sections: &[SectionTable], file_alignment: u32, is_64: bool, ) -> Result<Option<Self>>
pub fn parse_with_opts( bytes: &'a [u8], image_base: u64, dd: &DataDirectory, sections: &[SectionTable], file_alignment: u32, opts: &ParseOptions, is_64: bool, ) -> Result<Option<Self>>
Trait Implementations§
impl<'a> StructuralPartialEq for TlsData<'a>
Auto Trait Implementations§
impl<'a> Freeze for TlsData<'a>
impl<'a> RefUnwindSafe for TlsData<'a>
impl<'a> Send for TlsData<'a>
impl<'a> Sync for TlsData<'a>
impl<'a> Unpin for TlsData<'a>
impl<'a> UnwindSafe for TlsData<'a>
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