File.loadPartialContentsFinish

bool loadPartialContentsFinish(gio.async_result.AsyncResult res, out ubyte[] contents, out string etagOut)

Finishes an asynchronous partial load operation that was started with [gio.file.File.loadPartialContentsAsync]. The data is always zero-terminated, but this is not included in the resultant length. The returned contents should be freed with [glib.global.gfree] when no longer needed.

Parameters

resa #GAsyncResult
contentsa location to place the contents of the file
etagOuta location to place the current entity tag for the file, or null if the entity tag is not needed

Returns

true if the load was successful. If false and error is

present, it will be set appropriately.

Throws

[ErrorWrap]