FileIF.replaceContentsBytesAsync

Same as g_file_replace_contents_async() but takes a #GBytes 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().

interface FileIF
void
replaceContentsBytesAsync

Parameters

contents Bytes

a #GBytes

etag string

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

makeBackup bool

%TRUE if a backup should be created

flags GFileCreateFlags

a set of #GFileCreateFlags

cancellable Cancellable

optional #GCancellable 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