Struct object::write::Section [−][src]
pub struct Section { pub flags: SectionFlags, // some fields omitted }
Expand description
A section in an object file.
Fields
flags: SectionFlags
Section flags that are specific to each file format.
Implementations
impl Section
[src]
impl Section
[src]pub fn set_data(&mut self, data: Vec<u8>, align: u64)
[src]
pub fn set_data(&mut self, data: Vec<u8>, align: u64)
[src]Set the data for a section.
Must not be called for sections that already have data, or that contain uninitialized data.
pub fn append_data(&mut self, data: &[u8], align: u64) -> u64
[src]
pub fn append_data(&mut self, data: &[u8], align: u64) -> u64
[src]Append data to a section.
Must not be called for sections that contain uninitialized data.
pub fn append_bss(&mut self, size: u64, align: u64) -> u64
[src]
pub fn append_bss(&mut self, size: u64, align: u64) -> u64
[src]Append unitialized data to a section.
Must not be called for sections that contain initialized data.