Function ffurl_read

Source
pub unsafe extern "C" fn ffurl_read(
    h: *mut URLContext,
    buf: *mut c_uchar,
    size: c_int,
) -> c_int
Expand description

Read up to size bytes from the resource accessed by h, and store the read bytes in buf.

@return The number of bytes actually read, or a negative value corresponding to an AVERROR code in case of error. A value of zero indicates that it is not possible to read more from the accessed resource (except if the value of the size argument is also zero).