svn_stream_skip

Function svn_stream_skip 

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

Skip @a len bytes from a generic @a stream. If the stream is exhausted before @a len bytes have been read, return an error.

@note No assumption can be made on the semantics of this function other than that the stream read pointer will be advanced by *len bytes. Depending on the capabilities of the underlying stream implementation, this may for instance be translated into a sequence of reads or a simple seek operation. If the stream implementation has not provided a skip function, this will read from the stream and discard the data.

@since New in 1.7.