Struct opus::Repacketizer
source · [−]pub struct Repacketizer { /* private fields */ }
Expand description
A repacketizer used to merge together or split apart multiple Opus packets.
Implementations
sourceimpl Repacketizer
impl Repacketizer
sourcepub fn new() -> Result<Repacketizer>
pub fn new() -> Result<Repacketizer>
Create and initialize a repacketizer.
sourcepub fn combine(&mut self, input: &[&[u8]], output: &mut [u8]) -> Result<usize>
pub fn combine(&mut self, input: &[&[u8]], output: &mut [u8]) -> Result<usize>
Shortcut to combine several smaller packets into one larger one.
sourcepub fn begin<'rp, 'buf>(&'rp mut self) -> RepacketizerState<'rp, 'buf>
pub fn begin<'rp, 'buf>(&'rp mut self) -> RepacketizerState<'rp, 'buf>
Begin using the repacketizer.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Repacketizer
impl !Sync for Repacketizer
impl Unpin for Repacketizer
impl UnwindSafe for Repacketizer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more