[−][src]Struct magnum_opus::RepacketizerState
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]
self,
packet: &'b2 [u8]
) -> Result<RepacketizerState<'rp, 'b2>> where
'buf: 'b2,
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]
&mut self,
begin: usize,
end: usize,
buffer: &mut [u8]
) -> Result<usize>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,