Struct

HexChangeData

Description

struct HexChangeData {
  gint64 start;
  gint64 end;
  size_t rep_len;
  gboolean lower_nibble;
  gboolean insert;
  HexChangeType type;
  char* v_string;
  char v_byte;
}

A structure containing metadata about a change made to a HexDocument.

Structure members
start: gint64

Start offset of the payload, in bytes.

end: gint64

End offset of the payload, in bytes.

rep_len: size_t

Amount of data to replace at start, or 0 for data to be inserted without any overwriting.

lower_nibble: gboolean

TRUE if targetting the lower nibble (2nd hex digit) FALSE if targetting the upper nibble (1st hex digit).

insert: gboolean

TRUE if the operation should be insert mode, FALSE if in overwrite mode.

type: HexChangeType

HexChangeType representing the type of change (ie, a string or a single byte).

v_string: char*

String of the data representing a change, or NULL.

v_byte: char

Character representing a single byte to be changed, if applicable.