pub struct DecodedPacket<'a> { /* private fields */ }Expand description
One complete decoded packet, borrowing the caller’s PCM storage.
Implementations§
Source§impl<'a> DecodedPacket<'a>
impl<'a> DecodedPacket<'a>
Sourcepub fn pcm(&self) -> &'a [i16; 1152]
pub fn pcm(&self) -> &'a [i16; 1152]
The complete frame’s 1,152 mono PCM16 elements, with its size in the type.
Sourcepub const fn consumed_bytes(&self) -> usize
pub const fn consumed_bytes(&self) -> usize
Compressed bytes consumed, including the MPEG header and final padded byte. Any following frame or container footer is left untouched.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DecodedPacket<'a>
impl<'a> RefUnwindSafe for DecodedPacket<'a>
impl<'a> Send for DecodedPacket<'a>
impl<'a> Sync for DecodedPacket<'a>
impl<'a> Unpin for DecodedPacket<'a>
impl<'a> UnsafeUnpin for DecodedPacket<'a>
impl<'a> UnwindSafe for DecodedPacket<'a>
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