[][src]Struct magnum_opus::RepacketizerState

pub struct RepacketizerState<'rp, 'buf> { /* fields omitted */ }

An in-progress repacketization.

Implementations

impl<'rp, 'buf> RepacketizerState<'rp, 'buf>[src]

pub fn cat(&mut self, packet: &'buf [u8]) -> Result<()>[src]

Add a packet to the current repacketizer state.

pub fn cat_move<'b2>(
    self,
    packet: &'b2 [u8]
) -> Result<RepacketizerState<'rp, 'b2>> where
    'buf: 'b2, 
[src]

Add a packet to the current repacketizer state, moving it.

pub fn get_nb_frames(&mut self) -> usize[src]

Get the total number of frames contained in packet data submitted so far via cat.

pub fn out(&mut self, buffer: &mut [u8]) -> Result<usize>[src]

Construct a new packet from data previously submitted via cat.

All previously submitted frames are used.

pub fn out_range(
    &mut self,
    begin: usize,
    end: usize,
    buffer: &mut [u8]
) -> Result<usize>
[src]

Construct a new packet from data previously submitted via cat, with a manually specified subrange.

The end index should not exceed the value of get_nb_frames().

Trait Implementations

impl<'rp, 'buf> Debug for RepacketizerState<'rp, 'buf>[src]

Auto Trait Implementations

impl<'rp, 'buf> RefUnwindSafe for RepacketizerState<'rp, 'buf>

impl<'rp, 'buf> Send for RepacketizerState<'rp, 'buf>

impl<'rp, 'buf> !Sync for RepacketizerState<'rp, 'buf>

impl<'rp, 'buf> Unpin for RepacketizerState<'rp, 'buf>

impl<'rp, 'buf> !UnwindSafe for RepacketizerState<'rp, 'buf>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.