Method
GioFileload_bytes_finish
Declaration
GBytes*
g_file_load_bytes_finish (
GFile* file,
GAsyncResult* result,
gchar** etag_out,
GError** error
)
Description
Completes an asynchronous request to g_file_load_bytes_async().
For resources, etag_out
will be set to NULL
.
The data contained in the resulting GBytes
is always zero-terminated, but
this is not included in the GBytes
length. The resulting GBytes
should be
freed with g_bytes_unref()
when no longer in use.
See g_file_load_bytes()
for more information.
Available since: | 2.56 |
Parameters
result |
GAsyncResult |
A |
|
The data is owned by the caller of the function. | |
etag_out |
gchar** |
A location to place the current
entity tag for the file, or |
|
The argument will be set by the function. | |
The argument can be set to NULL . | |
The argument can be NULL . | |
The instance takes ownership of the data, and is responsible for freeing it. | |
The value is a NUL terminated UTF-8 string. | |
error |
GError ** |
The return location for a GError* , or NULL . |
Return value
Returns: | GBytes |
A |
|
The caller of the method takes ownership of the data, and is responsible for freeing it. |