pub struct EventRaw {
pub event_index: usize,
pub ranges: Vec<u8>,
pub original_ranges_offset: u32,
pub timestamps: Vec<u8>,
pub original_timestamps_offset: u32,
}Expand description
Raw event track data for a single event
This preserves the exact bytes from the original file for event data, allowing roundtrip serialization without data loss. Events have two M2Arrays: ranges (per-animation timing info) and times (u32 timestamps when event triggers).
Fields§
§event_index: usizeIndex of the event this track belongs to
ranges: Vec<u8>Raw ranges bytes (8 bytes per range: start, end timestamps)
original_ranges_offset: u32Original file offset for ranges array
timestamps: Vec<u8>Raw timestamp bytes (4 bytes per timestamp)
original_timestamps_offset: u32Original file offset for timestamps array
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventRaw
impl RefUnwindSafe for EventRaw
impl Send for EventRaw
impl Sync for EventRaw
impl Unpin for EventRaw
impl UnwindSafe for EventRaw
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().