svn_stream_read2

Function svn_stream_read2 

Source
pub unsafe extern "C" fn svn_stream_read2(
    stream: *mut svn_stream_t,
    buffer: *mut c_char,
    len: *mut apr_size_t,
) -> *mut svn_error_t
Expand description

Read all currently available upto @a *len into @a buffer. Use svn_stream_read_full() if you want to wait for the buffer to be filled or EOF. If the stream doesn’t support limited reads this function will return an #SVN_ERR_STREAM_NOT_SUPPORTED error.

A 0 byte read signals the end of the stream.

@since New in 1.9.