Struct MagicMatch

One of magic rules in magic definition. Represents <match> element in source XML.

struct MagicMatch ;

Constructors

NameDescription
this Construct MagicMatch from type, value, mask, startOffset and rangeLength

Methods

NameDescription
addSubmatch Add subrule to the children of this rule.
hasMask Check if the rule has value mask.
mask The number to AND the value in the file with before comparing it to value
rangeLength The length of the region in the file to check.
startOffset The offset into the file to look for a match.
submatches Get match subrules
type Type of match value.
value The value to compare the file contents with

Enums

NameDescription
Type Type of match value.