Expand description
TLS Directory.
Examples
use pelite::pe64::{Pe, PeFile};
fn example(file: PeFile<'_>) -> pelite::Result<()> {
// Access the TLS directory
let tls = file.tls()?;
// Access the initialized thread local data
let raw_data = tls.raw_data()?;
// Access the TLS slot
let slot = tls.slot()?;
// Access the TLS callbacks
let callbacks = tls.callbacks()?;
Ok(())
}
Structs
TLS Directory.