pub struct Chunk {
pub ir_slot: u8,
pub slot: u8,
pub sub: u8,
pub offset: u32,
pub total: u32,
pub data: Vec<u8>,
}Expand description
One upload chunk (or a header-only request/ack), unpacked.
Fields§
§ir_slot: u8Header byte 0: the user IR slot in IR data (0x10) chunks, 0 in NAM uploads.
slot: u8Header byte 1: the user AMP slot in NAM (0x58) chunks, 0 in IR data.
sub: u8§offset: u32Byte offset of data in the whole upload.
total: u32Total upload length in bytes (8192 for model data, 128 for a slot-info record).
data: Vec<u8>Implementations§
Trait Implementations§
impl Eq for Chunk
impl StructuralPartialEq for Chunk
Auto Trait Implementations§
impl Freeze for Chunk
impl RefUnwindSafe for Chunk
impl Send for Chunk
impl Sync for Chunk
impl Unpin for Chunk
impl UnsafeUnpin for Chunk
impl UnwindSafe for Chunk
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