FileT.replaceContentsBytesAsync

Same as g_file_replace_contents_async() but takes a glib.Bytes input instead. This function will keep a ref on contents until the operation is done. Unlike g_file_replace_contents_async() this allows forgetting about the content without waiting for the callback.

When this operation has completed, callback will be called with user_user data, and the operation can be finalized with g_file_replace_contents_finish().

template FileT(TStruct)
void
replaceContentsBytesAsync

Parameters

contents Bytes
etag string

a new [entity tag][gfile-etag] for the file, or NULL

makeBackup bool

TRUE if a backup should be created

flags GFileCreateFlags
cancellable Cancellable

optional gio.Cancellable object, NULL to ignore

callback GAsyncReadyCallback

a GAsyncReadyCallback to call when the request is satisfied

userData void*

the data to pass to callback function

Meta

Since

2.40