Function rsmpeg::ffi::avio_read_partial[][src]

pub unsafe extern "C" fn avio_read_partial(
    s: *mut AVIOContext,
    buf: *mut u8,
    size: i32
) -> i32
Expand description

Read size bytes from AVIOContext into buf. Unlike avio_read(), this is allowed to read fewer bytes than requested. The missing bytes can be read in the next call. This always tries to read at least 1 byte. Useful to reduce latency in certain cases. @return number of bytes read or AVERROR