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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AlignedBuffer
impl RefUnwindSafe for AlignedBuffer
impl Send for AlignedBuffer
impl Sync for AlignedBuffer
impl Unpin for AlignedBuffer
impl UnsafeUnpin for AlignedBuffer
impl UnwindSafe for AlignedBuffer
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