pub(super) struct ModuleBlockEntry {
pub(super) compressed_offset: u32,
pub(super) compressed_size: u32,
pub(super) decompressed_offset: u32,
pub(super) decompressed_size: u32,
pub(super) is_compressed: bool,
}
Expand description
Represents a module block entry containing information related to Kraken compression.
This struct is used to determine how to read bytes in ModuleFileEntry
.
Fields§
§compressed_offset: u32
Offset in bytes of compressed data inside the module (after file_data_offset
in the module).
compressed_size: u32
Size in bytes of compressed data inside the module.
decompressed_offset: u32
Offset in bytes of decompressed data inside the decompression buffer.
decompressed_size: u32
Size in bytes of the decompression buffer.
is_compressed: bool
Boolean indicating if the block is compressed or not. Tags can be made up of both compressed and decompressed blocks.
Trait Implementations§
Source§impl Debug for ModuleBlockEntry
impl Debug for ModuleBlockEntry
Source§impl Default for ModuleBlockEntry
impl Default for ModuleBlockEntry
Source§fn default() -> ModuleBlockEntry
fn default() -> ModuleBlockEntry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ModuleBlockEntry
impl RefUnwindSafe for ModuleBlockEntry
impl Send for ModuleBlockEntry
impl Sync for ModuleBlockEntry
impl Unpin for ModuleBlockEntry
impl UnwindSafe for ModuleBlockEntry
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