replaceContentsBytesAsync
open fun replaceContentsBytesAsync(contents: <Error class: unknown class>, etag: String? = null, makeBackup: Boolean, flags: FileCreateFlags, cancellable: Cancellable? = null, callback: AsyncReadyCallback)
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
Since
2.40
Parameters
contents
a #GBytes
etag
a new #entity-tags for the @file, or null
makeBackup
true if a backup should be created
flags
a set of #GFileCreateFlags
cancellable
optional #GCancellable object, null to ignore
callback
a #GAsyncReadyCallback to call when the request is satisfied