Struct infinite_rs::tag::datablock::TagDataBlock
source · pub struct TagDataBlock {
pub entry_size: u32,
pub padding: u16,
pub section_type: TagSectionType,
pub offset: u64,
}Expand description
Tag data metadata block containing data on where the binary section is located.
Fields§
§entry_size: u32The size of the data block entry in bytes.
padding: u16How many unused bytes come before the offset.
section_type: TagSectionTypeWhere the data block is stored.
offset: u64Offset of where the data is stored from the start of the tag file.
Implementations§
source§impl TagDataBlock
impl TagDataBlock
sourcepub fn read<R: BufRead>(&mut self, reader: &mut R) -> Result<()>
pub fn read<R: BufRead>(&mut self, reader: &mut R) -> Result<()>
Reads the tag data block from the given readers implementing “BufRead”.
§Arguments
reader- A mutable reference to a reader that implementsBufReadfrom which to read the data.
§Returns
Returns Ok(()) if the header is successfully read, or an Err if an I/O error occurs
or if the header data is invalid.
Trait Implementations§
source§impl Debug for TagDataBlock
impl Debug for TagDataBlock
source§impl Default for TagDataBlock
impl Default for TagDataBlock
source§fn default() -> TagDataBlock
fn default() -> TagDataBlock
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TagDataBlock
impl RefUnwindSafe for TagDataBlock
impl Send for TagDataBlock
impl Sync for TagDataBlock
impl Unpin for TagDataBlock
impl UnwindSafe for TagDataBlock
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