Struct runefs::ArchiveRef
source · [−]Expand description
A reference to an archive segment.
Archives are not stored in a contiguous fashion.
An ArchiveRef is basically a wide pointer, like &str or &[u8]. When an Archive is fetched from the
Dat2 file it knows where the memory starts and its length. Each block of memory belong to the archive
is viewed as a Sector, which contains a pointer to the next sector. Once this chain is
exhausted you are left with all of the archive data.
Fields
id: u32index_id: u8sector: usizelength: usizeImplementations
pub fn data_blocks(&self) -> DataBlocksⓘNotable traits for DataBlocksimpl Iterator for DataBlocks type Item = usize;
pub fn data_blocks(&self) -> DataBlocksⓘNotable traits for DataBlocksimpl Iterator for DataBlocks type Item = usize;
impl Iterator for DataBlocks type Item = usize;Generate a data block iterator from this archive reference.
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ArchiveRef
impl Send for ArchiveRef
impl Sync for ArchiveRef
impl Unpin for ArchiveRef
impl UnwindSafe for ArchiveRef
Blanket Implementations
Mutably borrows from an owned value. Read more