Method
HexDocumentset_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-
Type:
gint64Offset in bytes within the payload.
len-
Type:
size_tLength in bytes of the data to be set.
rep_len-
Type:
size_tAmount of bytes to replace/overwrite (if any)
data-
Type: An array of
charA pointer to the data being provided.
The length of the array is specified in the lenargument.The instance takes ownership of the data, and is responsible for freeing it. Each element is a NUL terminated UTF-8 string. undoable-
Type:
gbooleanWhether the operation should be undoable.