Skip to main content

read_vlq

Function read_vlq 

Source
pub fn read_vlq(bytes: &[u8]) -> Result<(u32, usize), AudioError>
Expand description

Decode a VLQ from the front of bytes.

Returns (value, bytes_consumed). Errors with AudioError::MalformedAudio if the input ends mid-number or the quantity exceeds the 4-byte / 28-bit SMF limit.