FileIF.loadBytesAsync

Asynchronously loads the contents of file as glib.Bytes

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 g_file_load_contents_async() and Bytes.newTake.

callback should call g_file_load_bytes_finish() to get the result of this asynchronous operation.

See g_file_load_bytes() for more information.

interface FileIF
void
loadBytesAsync

Parameters

cancellable Cancellable

a gio.Cancellable or NULL

callback GAsyncReadyCallback

a GAsyncReadyCallback to call when the request is satisfied

userData void*

the data to pass to callback function

Meta

Since

2.56