Description Methods and Functions Hierarchy Detailed Description Structures Enums and Flags Author(s) References
Base class for implementing streaming output
gOutputStreamWrite(object, buffer, cancellable = NULL, .errwarn = TRUE)
gOutputStreamWriteAll(object, buffer, bytes.written, cancellable = NULL, .errwarn = TRUE)
gOutputStreamSplice(object, source, flags = "G_OUTPUT_STREAM_SPLICE_NONE", cancellable = NULL, .errwarn = TRUE)
gOutputStreamFlush(object, cancellable = NULL, .errwarn = TRUE)
gOutputStreamClose(object, cancellable = NULL, .errwarn = TRUE)
gOutputStreamWriteAsync(object, buffer, io.priority = 0, cancellable = NULL, callback, user.data = NULL)
gOutputStreamWriteFinish(object, result, .errwarn = TRUE)
gOutputStreamSpliceAsync(object, source, flags = "G_OUTPUT_STREAM_SPLICE_NONE", io.priority = 0, cancellable = NULL, callback, user.data = NULL)
gOutputStreamSpliceFinish(object, result, .errwarn = TRUE)
gOutputStreamFlushAsync(object, io.priority = 0, cancellable = NULL, callback, user.data = NULL)
gOutputStreamFlushFinish(object, result, .errwarn = TRUE)
gOutputStreamCloseAsync(object, io.priority = 0, cancellable = NULL, callback, user.data = NULL)
gOutputStreamCloseFinish(object, result, .errwarn = TRUE)
gOutputStreamIsClosed(object)
gOutputStreamHasPending(object)
gOutputStreamSetPending(object, .errwarn = TRUE)
gOutputStreamClearPending(object)
1 2 3 4 5 6 7 8 | GFlags
+----GOutputStreamSpliceFlags
GObject
+----GOutputStream
+----GFilterOutputStream
+----GFileOutputStream
+----GMemoryOutputStream
+----GUnixOutputStream
|
GOutputStream has functions to write to a stream (gOutputStreamWrite),
to close a stream (gOutputStreamClose) and to flush pending writes
(gOutputStreamFlush).
To copy the content of an input stream to an output stream without
manually handling the reads and writes, use gOutputStreamSplice.
All of these functions have async variants too.
GOutputStreamBase class for writing output.
All classes derived from GOutputStream should implement synchronous writing, splicing, flushing and closing streams, but may implement asynchronous versions.
GOutputStreamSpliceFlagsGOutputStreamSpliceFlags determine how streams should be spliced.
noneDo not close either stream.
close-sourceClose the source stream after the splice.
close-targetClose the target stream after the splice.
Derived by RGtkGen from GTK+ documentation
https://developer.gnome.org/gio/stable/GOutputStream.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.