FileT.loadBytesAsync

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.

template FileT()
override
void
loadBytesAsync

Parameters

cancellable gio.cancellable.Cancellable

a #GCancellable or null

callback gio.types.AsyncReadyCallback

a #GAsyncReadyCallback to call when the request is satisfied