pub struct SectionHeader {
pub tag: u8,
pub length: u32,
pub offset: u64,
}Expand description
A section header for variable-length sections in a binary format.
Fields§
§tag: u8§length: u32§offset: u64Implementations§
Source§impl SectionHeader
impl SectionHeader
Sourcepub fn write(&self, w: &mut OleanWriter)
pub fn write(&self, w: &mut OleanWriter)
Write this header into a writer.
Sourcepub fn read(r: &mut OleanReader<'_>) -> Result<Self, OleanError>
pub fn read(r: &mut OleanReader<'_>) -> Result<Self, OleanError>
Read a section header from a reader.
Trait Implementations§
Source§impl Clone for SectionHeader
impl Clone for SectionHeader
Auto Trait Implementations§
impl Forget for SectionHeader
impl Freeze for SectionHeader
impl Move for SectionHeader
impl RefUnwindSafe for SectionHeader
impl Send for SectionHeader
impl Sync for SectionHeader
impl Unpin for SectionHeader
impl UnsafeUnpin for SectionHeader
impl UnwindSafe for SectionHeader
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