pub trait Section {
// Provided methods
fn name(&self) -> String { ... }
fn size(&self) -> u64 { ... }
fn offset(&self) -> u64 { ... }
fn virtual_address(&self) -> u64 { ... }
fn content(&self) -> &[u8] ⓘ { ... }
fn set_name(&mut self, name: &str) { ... }
fn set_content(&mut self, data: &[u8]) { ... }
fn set_size(&mut self, size: u64) { ... }
}Expand description
Trait shared by all the sections in executable formats
Provided Methods§
fn virtual_address(&self) -> u64
fn virtual_address(&self) -> u64
Address of the section in memory
fn set_content(&mut self, data: &[u8])
fn set_content(&mut self, data: &[u8])
Change section content