Gio.File.prototype.load_partial_contents_finish
function load_partial_contents_finish(res: Gio.AsyncResult): [ok: Boolean, contents: ByteArray, etag_out: String] {
// Gjs wrapper for g_file_load_partial_contents_finish()
}
Finishes an asynchronous partial load operation that was started with Gio.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 GLib.free when no longer needed.
- res
- ok
true if the load was successful. If false and @error is present, it will be set appropriately.
- contents
a location to place the contents of the file
- etag_out
a location to place the current entity tag for the file, or null if the entity tag is not needed