pub struct Index {
pub chunks: Vec<Entry>,
}
Expand description
A chunk file providing a table into the parent data.
Validated chunks as defined by their index entries.
The size of a single index entry in bytes
The smallest possible size of an index, consisting only of the sentinel value pointing past itself.
Find a chunk of kind and return its offset into the data if found
Find a chunk of kind and return its data slice based on its offset.
Provided a mapped file at the beginning via data, starting at toc_offset decode all chunk information to return
an index with num_chunks chunks.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.