svn_stream_data_available

Function svn_stream_data_available 

Source
pub unsafe extern "C" fn svn_stream_data_available(
    stream: *mut svn_stream_t,
    data_available: *mut svn_boolean_t,
) -> *mut svn_error_t
Expand description

When a stream supports polling for available data, obtain a boolean indicating whether data is waiting to be read. If the stream doesn’t support polling this function returns a #SVN_ERR_STREAM_NOT_SUPPORTED error.

If the data_available callback is implemented and the stream is at the end the stream will set @a *data_available to FALSE.

@since New in 1.9.