Struct infinite_rs::tag::data_reference::TagDataReference
source · pub struct TagDataReference {
pub parent_struct_index: i32,
pub unknown: i32,
pub target_index: i32,
pub field_block: u32,
pub field_offset: u32,
}Expand description
Structure that defines a reference to a blob of data inside tag data.
Fields§
§parent_struct_index: i32The index of the tag struct containing the tag field.
unknown: i32Unknown: seems to vary.
target_index: i32The index of the tag struct containing the referenced data. Can be -1 for null references.
field_block: u32The index of the data block containing the tag field.
field_offset: u32The offset of the tag field inside the data block.
Implementations§
source§impl TagDataReference
impl TagDataReference
sourcepub fn read<R: BufRead>(&mut self, reader: &mut R) -> Result<()>
pub fn read<R: BufRead>(&mut self, reader: &mut R) -> Result<()>
Reads the tag data reference from the given readers implementing “BufRead”.
§Arguments
reader- A mutable reference to a reader that implementsBufReadfrom which to read the data.
§Returns
Returns Ok(()) if the header is successfully read, or an Err if an I/O error occurs
or if the header data is invalid.
Trait Implementations§
source§impl Debug for TagDataReference
impl Debug for TagDataReference
source§impl Default for TagDataReference
impl Default for TagDataReference
source§fn default() -> TagDataReference
fn default() -> TagDataReference
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TagDataReference
impl RefUnwindSafe for TagDataReference
impl Send for TagDataReference
impl Sync for TagDataReference
impl Unpin for TagDataReference
impl UnwindSafe for TagDataReference
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