OutputStream.splice

Splices an input stream into an output stream.

Parameters

source gio.input_stream.InputStream

a #GInputStream.

flags gio.types.OutputStreamSpliceFlags

a set of #GOutputStreamSpliceFlags.

cancellable gio.cancellable.Cancellable

optional #GCancellable object, null to ignore.

Return Value

Type: ptrdiff_t

a #gssize 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.