Description Methods and Functions Hierarchy Detailed Description Structures Author(s) References
Base class for implementing streaming input
gInputStreamRead(object, count, cancellable = NULL, .errwarn = TRUE)
gInputStreamReadAll(object, count, cancellable = NULL, .errwarn = TRUE)
gInputStreamSkip(object, count, cancellable = NULL, .errwarn = TRUE)
gInputStreamClose(object, cancellable = NULL, .errwarn = TRUE)
gInputStreamReadAsync(object, count, io.priority = 0, cancellable = NULL, callback, user.data = NULL)
gInputStreamReadFinish(object, result, .errwarn = TRUE)
gInputStreamSkipAsync(object, count, io.priority = 0, cancellable = NULL, callback, user.data = NULL)
gInputStreamSkipFinish(object, result, .errwarn = TRUE)
gInputStreamCloseAsync(object, io.priority = 0, cancellable = NULL, callback, user.data = NULL)
gInputStreamCloseFinish(object, result, .errwarn = TRUE)
gInputStreamIsClosed(object)
gInputStreamHasPending(object)
gInputStreamSetPending(object, .errwarn = TRUE)
gInputStreamClearPending(object)
1 2 3 4 5 6 | GObject
+----GInputStream
+----GFilterInputStream
+----GFileInputStream
+----GMemoryInputStream
+----GUnixInputStream
|
GInputStream has functions to read from a stream (gInputStreamRead
),
to close a stream (gInputStreamClose
) and to skip some content
(gInputStreamSkip
).
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.
GInputStream
Base class for streaming input operations.
Derived by RGtkGen from GTK+ documentation
https://developer.gnome.org/gio/stable/GInputStream.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.