Hex.Document.set_data

### Method

# Hex Documentset_data

#### Declaration

    void
    hex_document_set_data (
      HexDocument* doc,
      gint64 offset,
      size_t len,
      size_t rep_len,
      char* data,
      gboolean undoable
    )

#### Description

A convenience wrapper for `hex_buffer_set_data()`. See the description of that method for details.

#### Parameters

`offset` | `gint64`
| Offset in bytes within the payload.
`len` | `size_t`
| Length in bytes of the data to be set.
`rep_len` | `size_t`
| Amount of bytes to replace/overwrite (if any)
`data` | An array of `char`
| A pointer to the data being provided.
| The length of the array is specified in the `len` argument.
| The instance takes ownership of the data, and is responsible for freeing it.
| Each element is a NUL terminated UTF-8 string.
`undoable` | `gboolean`
| Whether the operation should be undoable.