FileT.loadBytesFinish

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.

template FileT(TStruct)
Bytes
loadBytesFinish

Parameters

result AsyncResultIF

a #GAsyncResult provided to the callback

etagOut string

a location to place the current entity tag for the file, or %NULL if the entity tag is not needed

Return Value

Type: Bytes

a #GBytes or %NULL and @error is set

Throws

GException on failure.

Meta

Since

2.56