File.loadBytesAsync
void loadBytesAsync(gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Asynchronously loads the contents of file as #GBytes.
If file is a resource:// based URI, the resulting bytes will reference the embedded resource instead of a copy. Otherwise, this is equivalent to calling [gio.file.File.loadContentsAsync] and [glib.bytes.Bytes.newTake].
callback should call [gio.file.File.loadBytesFinish] to get the result of this asynchronous operation.
See [gio.file.File.loadBytes] for more information.
Parameters
cancellable | a #GCancellable or null |
callback | a #GAsyncReadyCallback to call when the request is satisfied |