ffmpeg_sidecar::read_until_any

Function read_until_any

Source
pub fn read_until_any<R: BufRead + ?Sized>(
    r: &mut R,
    delims: &[u8],
    buf: &mut Vec<u8>,
) -> Result<usize>
Expand description

Reads from the provided buffer until any of the delimiter bytes match. The output buffer will include the ending delimiter. Also skips over zero-length reads. See BufRead::read_until.