pub struct ModuleFileEntry {
pub tag_group: String,
pub tag_id: i32,
pub data_stream: Option<BufReader<Cursor<Vec<u8>>>>,
pub tag_info: Option<TagFile>,
/* private fields */
}
Expand description
Module file entry structure containing metadata relating to file and required buffer sizes and offsets for the decompressor, as well as global tag ID, resource references and class.
Fields§
§tag_group: String
4 byte-long string for tag group, stored as big endian. This determines how the rest of the tag is read. Example:
- bitm: Bitmap
- mat: Material
tag_id: i32
MurmurHash3_x86_64
32 bit hash of tag path.
Referred to in-memory as “global tag id”
Is set to -1 if file is resource.
data_stream: Option<BufReader<Cursor<Vec<u8>>>>
Data stream containing a buffer of bytes to read/seek.
tag_info: Option<TagFile>
The actual tag file read from the contents (including header), only valid if file is not a resource.
Trait Implementations§
source§impl Debug for ModuleFileEntry
impl Debug for ModuleFileEntry
source§impl Default for ModuleFileEntry
impl Default for ModuleFileEntry
source§fn default() -> ModuleFileEntry
fn default() -> ModuleFileEntry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ModuleFileEntry
impl RefUnwindSafe for ModuleFileEntry
impl Send for ModuleFileEntry
impl Sync for ModuleFileEntry
impl Unpin for ModuleFileEntry
impl UnwindSafe for ModuleFileEntry
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