-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.
OutputStream.splice
ptrdiff_t splice(gio.input_stream.InputStream source, gio.types.OutputStreamSpliceFlags flags, gio.cancellable.Cancellable cancellable = null)Splices an input stream into an output stream.
Parameters
source | a #GInputStream. |
flags | a set of #GOutputStreamSpliceFlags. |
cancellable | optional #GCancellable object, null to ignore. |
Returns
a #gssize containing the size of the data spliced, or
Throws
[ErrorWrap]