Method
GioFilereplace_contents_bytes_async
since: 2.40
Declaration [src]
void
g_file_replace_contents_bytes_async (
  GFile* file,
  GBytes* contents,
  const char* etag,
  gboolean make_backup,
  GFileCreateFlags flags,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)
Description [src]
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().
Available since: 2.40
Parameters
- contents
- 
            Type: GBytesA GBytes.The data is owned by the caller of the method. 
- etag
- 
            Type: const char*A new entity tag for the file, orNULL.The argument can be NULL.The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. 
- make_backup
- 
            Type: gbooleanTRUEif a backup should be created.
- flags
- 
            Type: GFileCreateFlagsA set of GFileCreateFlags.
- cancellable
- 
            Type: GCancellableOptional GCancellableobject,NULLto ignore.The argument can be NULL.The data is owned by the caller of the method. 
- callback
- 
            Type: GAsyncReadyCallbackA GAsyncReadyCallbackto call when the request is satisfied.The argument can be NULL.
- user_data
- 
            Type: gpointerThe data to pass to callback function. The argument can be NULL.The data is owned by the caller of the method.