File.replaceContentsBytesAsync

Same as gio.file.File.replaceContentsAsync but takes a #GBytes input instead. This function will keep a ref on contents until the operation is done. Unlike gio.file.File.replaceContentsAsync 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 gio.file.File.replaceContentsFinish.

Parameters

contents glib.bytes.Bytes

a #GBytes

etag string

a new entity tag for the file, or null

makeBackup bool

true if a backup should be created

flags gio.types.FileCreateFlags

a set of #GFileCreateFlags

cancellable gio.cancellable.Cancellable

optional #GCancellable object, null to ignore

callback gio.types.AsyncReadyCallback

a #GAsyncReadyCallback to call when the request is satisfied