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

Start offset of the payload, in bytes.

end

End offset of the payload, in bytes.

rep_len

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

lower_nibble

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

insert

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

type

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

v_string

String of the data representing a change, or NULL.

v_byte

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