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> Freeze for HffDesc<'a>
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