Function opus::packet::pad

source · []
pub fn pad(packet: &mut [u8], prev_len: usize) -> Result<usize>
Expand description

Pad a given Opus packet to a larger size.

The packet will be extended from the first prev_len bytes of the buffer into the rest of the available space.