| GIO Reference Manual | ||||
|---|---|---|---|---|
GFileOutputStream;
GFileInfo* g_file_output_stream_query_info (GFileOutputStream *stream,
char *attributes,
GCancellable *cancellable,
GError **error);
void g_file_output_stream_query_info_async
(GFileOutputStream *stream,
char *attributes,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
GFileInfo* g_file_output_stream_query_info_finish
(GFileOutputStream *stream,
GAsyncResult *result,
GError **error);
char* g_file_output_stream_get_etag (GFileOutputStream *stream);
goffset g_file_output_stream_tell (GFileOutputStream *stream);
gboolean g_file_output_stream_can_seek (GFileOutputStream *stream);
gboolean g_file_output_stream_seek (GFileOutputStream *stream,
goffset offset,
GSeekType type,
GCancellable *cancellable,
GError **error);
gboolean g_file_output_stream_can_truncate (GFileOutputStream *stream);
gboolean g_file_output_stream_truncate (GFileOutputStream *stream,
goffset size,
GCancellable *cancellable,
GError **error);
GFileInfo* g_file_output_stream_query_info (GFileOutputStream *stream, char *attributes, GCancellable *cancellable, GError **error);
* Returns: NULL or a GFileInfo for the stream.
For the asynchronous version of this function, see
g_file_output_stream_query_info_async().
|
a GFileOutputStream. |
|
|
|
optional GCancellable object, NULL to ignore.
|
|
a GError location to store the error occuring, or NULL to
ignore.
|
Returns : |
void g_file_output_stream_query_info_async
(GFileOutputStream *stream,
char *attributes,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
Asynchronously queries the stream for a GFileInfo. When completed,
callback will be called with a GAsyncResult which can be used to
finish the operation with g_file_output_stream_query_info_finish().
For the synchronous version of this function, see
g_file_output_stream_query_info().
|
a GFileOutputStream. |
|
|
|
the io priority of the request. |
|
optional GCancellable object, NULL to ignore.
|
|
a GAsyncReadyCallback. |
|
user data for callback.
|
GFileInfo* g_file_output_stream_query_info_finish (GFileOutputStream *stream, GAsyncResult *result, GError **error);
Finalizes the asynchronous query started
by g_file_output_stream_query_info_async().
|
a GFileOutputStream. |
|
a GAsyncResult. |
|
a GError location to store the error occuring, or NULL to
ignore.
|
Returns : |
A GFileInfo for the finished query. |
char* g_file_output_stream_get_etag (GFileOutputStream *stream);
|
a GFileOutputString. |
Returns : |
goffset g_file_output_stream_tell (GFileOutputStream *stream);
|
|
Returns : |
gboolean g_file_output_stream_can_seek (GFileOutputStream *stream);
|
|
Returns : |
gboolean g_file_output_stream_seek (GFileOutputStream *stream, goffset offset, GSeekType type, GCancellable *cancellable, GError **error);
|
|
|
|
|
|
|
optional GCancellable object, NULL to ignore.
|
|
a GError location to store the error occuring, or NULL to
ignore.
Returns:
|
Returns : |
gboolean g_file_output_stream_can_truncate (GFileOutputStream *stream);
|
|
Returns : |
TRUE if stream can be truncated.
|
gboolean g_file_output_stream_truncate (GFileOutputStream *stream, goffset size, GCancellable *cancellable, GError **error);
|
|
|
|
|
optional GCancellable object, NULL to ignore.
|
|
a GError location to store the error occuring, or NULL to
ignore.
Returns: TRUE if stream is truncated.
|
Returns : |