#[repr(C, packed(1))]pub struct WavDiff {
pub channel: i32,
pub frame_offset: i32,
pub param_id: i32,
pub index: u16,
pub old_val: u16,
pub new_val: u16,
}Expand description
18-byte diff record for a single state mutation.
Every state change produces
one WavDiff. The engine is the sole authority that evaluates diffs.
Layout: #[repr(C, packed)] guarantees exactly 18 bytes with zero padding.
Fields are laid out as 3×i32 + 3×u16 = 12 + 6 = 18 bytes.
Fields§
§channel: i32Channel index.
frame_offset: i32Frame offset in buffer.
param_id: i32Parameter identifier.
index: u16Index within the channel’s state array.
old_val: u16State value before the mutation.
new_val: u16State value after the mutation.
Implementations§
Trait Implementations§
impl Copy for WavDiff
impl Eq for WavDiff
impl StructuralPartialEq for WavDiff
Auto Trait Implementations§
impl Freeze for WavDiff
impl RefUnwindSafe for WavDiff
impl Send for WavDiff
impl Sync for WavDiff
impl Unpin for WavDiff
impl UnsafeUnpin for WavDiff
impl UnwindSafe for WavDiff
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