pub struct StreamMap {
pub block_first_file_index: Vec<usize>,
pub file_block_index: Vec<Option<usize>>,
/* private fields */
}Expand description
Mapping structure that correlates files, blocks, and pack streams within an archive.
This structure maintains the relationships between archive entries and their corresponding compression blocks and packed data streams.
Fields§
§block_first_file_index: Vec<usize>Index of first file for each block.
file_block_index: Vec<Option<usize>>Block index for each file (None if file has no data).
Implementations§
Source§impl StreamMap
impl StreamMap
Sourcepub fn block_first_pack_stream_index(&self) -> &[usize]
pub fn block_first_pack_stream_index(&self) -> &[usize]
Returns the index of the first pack stream for each block. Used for mapping blocks to their packed data streams.
Sourcepub fn pack_stream_offsets(&self) -> &[u64]
pub fn pack_stream_offsets(&self) -> &[u64]
Returns byte offsets of each pack stream within the packed data region. Combined with pack_pos and SIGNATURE_HEADER_SIZE to get absolute offsets.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamMap
impl RefUnwindSafe for StreamMap
impl Send for StreamMap
impl Sync for StreamMap
impl Unpin for StreamMap
impl UnwindSafe for StreamMap
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