pub struct HffDesc<'a> { /* private fields */ }
Expand description
Description of hff and content.
Implementations§
source§impl<'a> HffDesc<'a>
impl<'a> HffDesc<'a>
sourcepub fn new(
tables: TableArray,
chunks: ChunkArray,
data: DataArray<'a>
) -> HffDesc<'a>
pub fn new( tables: TableArray, chunks: ChunkArray, data: DataArray<'a> ) -> HffDesc<'a>
Create a new content instance.
sourcepub fn finish(self) -> (TableArray, ChunkArray, DataArray<'a>)
pub fn finish(self) -> (TableArray, ChunkArray, DataArray<'a>)
Finish the descriptor and return the component parts.
sourcepub fn update_data(
tables: &mut TableArray,
chunks: &mut ChunkArray,
offset: u64,
offset_len: &[(u64, u64)]
)
pub fn update_data( tables: &mut TableArray, chunks: &mut ChunkArray, offset: u64, offset_len: &[(u64, u64)] )
Update tables and chunks for the given offset and length data.
sourcepub fn arrays_size(&self) -> usize
pub fn arrays_size(&self) -> usize
Size of the content arrays.
sourcepub fn offset_to_blob(&self) -> usize
pub fn offset_to_blob(&self) -> usize
Calculate the offset from the start of the file to the start of the data blob.
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for HffDesc<'a>
impl<'a> Send for HffDesc<'a>
impl<'a> Sync for HffDesc<'a>
impl<'a> Unpin for HffDesc<'a>
impl<'a> UnwindSafe for HffDesc<'a>
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