Hex.Buffer.set_file
Description: Reference for Hex.Buffer.set_file

### Virtual Method

# Hex Bufferset_file

#### Declaration

    gboolean
    set_file (
      HexBuffer* self,
      GFile* file
    )

#### Description

Set the `GFile` to be utilized by the buffer. Once it has been set, you can read it into the buffer with `hex_buffer_read()` or `hex_buffer_read_async()`.

#### Parameters

`file`

  Type: `GFile`

  The file to be utilized by the buffer.

  The data is owned by the caller of the function.

#### Return value

Type: `gboolean`

`TRUE` if the operation was successful; `FALSE` otherwise.