pub enum PackedValues {
Numeric {
format: Format,
bytes: Arc<[u8]>,
},
Strings(Arc<[Vec<u8>]>),
}Expand description
Compact, reference-counted channel values for one sample.
For all fixed-width numeric formats, Numeric holds the native-endian
channel bytes contiguously in an Arc<[u8]> (e.g., 256 bytes for 64 f32
channels instead of 2048 bytes for Vec<Value>). Cloning a
PackedSample across multiple consumer queues and the resume history
copies only the Arc pointer.
Variants§
Numeric
Contiguous native-endian channel bytes for a fixed-width format.
Fields
Strings(Arc<[Vec<u8>]>)
Channel byte strings for Format::String.
Trait Implementations§
Source§impl Clone for PackedValues
impl Clone for PackedValues
Source§impl Debug for PackedValues
impl Debug for PackedValues
Source§impl PartialEq for PackedValues
impl PartialEq for PackedValues
impl StructuralPartialEq for PackedValues
Auto Trait Implementations§
impl Forget for PackedValues
impl Freeze for PackedValues
impl Move for PackedValues
impl RefUnwindSafe for PackedValues
impl Send for PackedValues
impl Sync for PackedValues
impl Unpin for PackedValues
impl UnsafeUnpin for PackedValues
impl UnwindSafe for PackedValues
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