Synopsis#include <gio/gio.h> GFileInputStream; GFileInfo* g_file_input_stream_query_info (GFileInputStream *stream, char *attributes, GCancellable *cancellable, GError **error); void g_file_input_stream_query_info_async (GFileInputStream *stream, char *attributes, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); GFileInfo* g_file_input_stream_query_info_finish (GFileInputStream *stream, GAsyncResult *result, GError **error); DescriptionGFileInputStream provides input streams that take their content from a file.
GFileInputStream implements GSeekable, which allows the input
stream to jump to arbitrary positions in the file, provided the
filesystem of the file allows it. In addition to the generic
g_seekable_ API, GFileInputStream has its own API for seeking
and positioning. To find the position of a file input stream,
use
DetailsGFileInputStreamtypedef struct _GFileInputStream GFileInputStream; A subclass of GInputStream for opened files. This adds a few file-specific operations and seeking. GFileInputStream implements GSeekable.
g_file_input_stream_query_info ()GFileInfo* g_file_input_stream_query_info (GFileInputStream *stream, char *attributes, GCancellable *cancellable, GError **error);
Queries a file input stream the given
g_file_input_stream_query_info_async ()void g_file_input_stream_query_info_async (GFileInputStream *stream, char *attributes, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data);
Queries the stream information asynchronously.
When the operation is finished
For the synchronous version of this function,
see
If
g_file_input_stream_query_info_finish ()GFileInfo* g_file_input_stream_query_info_finish (GFileInputStream *stream, GAsyncResult *result, GError **error); Finishes an asynchronous info query operation.
|