Hex.Document.set_buffer

### Method

# Hex Documentset_buffer

#### Declaration

    gboolean
    hex_document_set_buffer (
      HexDocument* doc,
      HexBuffer* buf
    )

#### Description

Set the `HexBuffer` connected with the `HexDocument`.

Available since: | 4.2

Sets property | `Hex.Document:buffer`

#### Parameters

`buf` | `HexBuffer`
| `HexBuffer`
| The data is owned by the caller of the function.

#### Return value

Returns: | `gboolean`
| `TRUE` if the operation was successful; `FALSE` otherwise.