packet_pad

Function packet_pad 

Source
pub fn packet_pad(packet: &mut [u8], len: usize, new_len: usize) -> Result<()>
Expand description

Increase a packet’s size by adding padding to reach new_len.

§Errors

Returns Error::BadArg for invalid lengths or a mapped libopus error if padding fails.