File.loadBytesFinish

glib.bytes.Bytes loadBytesFinish(gio.async_result.AsyncResult result, out string etagOut)

Completes an asynchronous request to [gio.file.File.loadBytesAsync].

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 [glib.bytes.Bytes.unref] when no longer in use.

See [gio.file.File.loadBytes] for more information.

Parameters

resulta #GAsyncResult provided to the callback
etagOuta location to place the current entity tag for the file, or null if the entity tag is not needed

Returns

a #GBytes or null and error is set

Throws

[ErrorWrap]