File.loadPartialContentsFinish

Finishes an asynchronous partial load operation that was started with g_file_load_partial_contents_async(). The data is always zero-terminated, but this is not included in the resultant length. The returned content should be freed with g_free() when no longer needed.

class File
int
loadPartialContentsFinish
(,
out string contents
,,
out string etagOut
)

Parameters

res AsyncResultIF

a GAsyncResult.

contents string

a location to place the contents of the file. out[transfer full][element-type guint8][array length=length]

length gsize

a location to place the length of the contents of the file, or NULL if the length is not needed. out[allow-none]

etagOut string

a location to place the current entity tag for the file, or NULL if the entity tag is not needed. out[allow-none]

Return Value

Type: int

TRUE if the load was successful. If FALSE and error is present, it will be set appropriately.

Throws

GException on failure.

Meta