load_bytes_async


Description:

[ Version ( since = "2.56" ) ]
public async Bytes load_bytes_async (Cancellable? cancellable = null, out string? etag_out) throws Error

Asynchronously loads the contents of this as Bytes.

If this is a resource:// based URI, the resulting bytes will reference the embedded resource instead of a copy. Otherwise, this is equivalent to calling load_contents_async and Bytes.take.

callback should call load_bytes_async.end to get the result of this asynchronous operation.

See load_bytes for more information.

Parameters:

this

a File

cancellable

a Cancellable or null

callback

a TaskReadyCallback to call when the request is satisfied

user_data

the data to pass to callback function