splice


Description:

public virtual ssize_t splice (InputStream source, OutputStreamSpliceFlags flags, Cancellable? cancellable = null) throws IOError

Splices an input stream into an output stream.

Parameters:

this

a OutputStream.

source

a InputStream.

flags

a set of OutputStreamSpliceFlags.

cancellable

optional Cancellable object, null to ignore.

Returns:

a ssize_t containing the size of the data spliced, or -1 if an error occurred. Note that if the number of bytes spliced is greater than g_maxssize, then that will be returned, and there is no way to determine the actual number of bytes spliced.