Dex.file_replace
Description: Reference for Dex.file_replace

### Function

# Dexfile_replace

#### Declaration [src]

    DexFuture*
    dex_file_replace (
      GFile* file,
      const char* etag,
      gboolean make_backup,
      GFileCreateFlags flags,
      int io_priority
    )

#### Description [src]

Opens a stream that will replace `file` on disk when the input stream is closed.

#### Parameters

`file`

  Type: `GFile`

  A `GFile`.

  The data is owned by the caller of the function.

`etag`

  Type: `const char*`

  The etag or `NULL`.

  The argument can be `NULL`.
  The data is owned by the caller of the function.
  The value is a NUL terminated UTF-8 string.

`make_backup`

  Type: `gboolean`

  No description available.

`flags`

  Type: `GFileCreateFlags`

  A set of `GFileCreateFlags`.

`io_priority`

  Type: `int`

  No description available.

#### Return value

Type: `DexFuture`

A `DexFuture` that resolves to a `GFileInputStream`.

The caller of the function takes ownership of the data, and is responsible for freeing it.