Libraries:Gtk:Gio:GFileInputStream
Types
T
Inherits from:GFileInputStream provides input streams that take their content from a file.
GFileInputStream implements Gtk.Gio.GSeekable.T, which allows the input stream to jump to arbitrary positions in the file, provided the filesystem of the file allows it. To find the position of a file input stream, use Gtk.Gio.GSeekable.Tell. To find out if a file input stream supports seeking, use g_seekable_stream_can_seek(). To position a file input stream, use Gtk.Gio.GSeekable.Seek.
Constants
Nil : T
Functions
GetType() : Gtk.GObject.Type.T
Methods
:Priv(self @ T) : Std.Object.T
:QueryInfo(self @ T, attributes @ Std.String.T, cancellable @ Gtk.Gio.GCancellable.T, error @ Std.Object.T) : Gtk.Gio.GFileInfo.T
Queries a file input stream the given attributes. This function blocks while querying the stream. For the asynchronous (non-blocking) version of this function, see QueryInfoAsync. While the stream is blocked, the stream will set the pending flag internally, and any other operations on the stream will fail with Gtk.Gio.GIOErrorEnum.Pending.
stream | a T. |
attributes | a file attribute query string. |
cancellable | optional Gtk.Gio.GCancellable.T object, NULL to ignore. [allow-none] |
error | a Gtk.Glib.GError.T location to store the error occurring, or NULL to ignore. |
Returns | a Gtk.Gio.GFileInfo.T, or NULL on error. [transfer full] |
:QueryInfoAsync(self @ T, attributes @ Std.String.T, io_priority @ Std.Integer.SmallT, cancellable @ Gtk.Gio.GCancellable.T, callback @ Std.Function.T, user_data) : Std.Object.T
Queries the stream information asynchronously. When the operation is finished callback will be called. You can then call QueryInfoFinish to get the result of the operation.
For the synchronous version of this function, see QueryInfo.
If cancellable is not NULL, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error Gtk.Gio.GIOErrorEnum.Cancelled will be set
stream | a T. |
attributes | a file attribute query string. |
io_priority | the I/O priority of the request. |
cancellable | optional Gtk.Gio.GCancellable.T object, NULL to ignore. [allow-none] |
callback | callback to call when the request is satisfied. [scope async] |
user_data | the data to pass to callback function. [closure] |
:QueryInfoFinish(self @ T, result @ Gtk.Gio.GAsyncResult.T, error @ Std.Object.T) : Gtk.Gio.GFileInfo.T
Finishes an asynchronous info query operation.
stream | a T. |
result | a Gtk.Gio.GAsyncResult.T. |
error | a Gtk.Glib.GError.T location to store the error occurring, or NULL to ignore. |
Returns | Gtk.Gio.GFileInfo.T. [transfer full] |