pub struct AlignedBuffer { /* private fields */ }Expand description
Aligned storage for libopus state structures.
Implementations§
Source§impl AlignedBuffer
impl AlignedBuffer
Sourcepub fn with_capacity_bytes(bytes: usize) -> Self
pub fn with_capacity_bytes(bytes: usize) -> Self
Allocate at least bytes of pointer-aligned storage.
Sourcepub fn capacity_bytes(&self) -> usize
pub fn capacity_bytes(&self) -> usize
Total available capacity in bytes.
Sourcepub fn as_mut_ptr<T>(&mut self) -> *mut T
pub fn as_mut_ptr<T>(&mut self) -> *mut T
Borrow the underlying buffer as a mutable pointer.