pub struct SectionTable { /* private fields */ }Expand description
A table of section headers for a multi-section binary file.
Implementations§
Source§impl SectionTable
impl SectionTable
Sourcepub fn add(&mut self, header: SectionHeader)
pub fn add(&mut self, header: SectionHeader)
Add a section header.
Sourcepub fn find(&self, tag: u8) -> Option<&SectionHeader>
pub fn find(&self, tag: u8) -> Option<&SectionHeader>
Look up a section header by tag.
Sourcepub fn write(&self, w: &mut OleanWriter)
pub fn write(&self, w: &mut OleanWriter)
Serialize the entire table.
Sourcepub fn read(r: &mut OleanReader<'_>) -> Result<Self, OleanError>
pub fn read(r: &mut OleanReader<'_>) -> Result<Self, OleanError>
Deserialize a section table from a reader.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SectionTable
impl RefUnwindSafe for SectionTable
impl Send for SectionTable
impl Sync for SectionTable
impl Unpin for SectionTable
impl UnsafeUnpin for SectionTable
impl UnwindSafe for SectionTable
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