Number
The Number element defines a binary number of lengths 8, 16, 24, 32, or 64 bits. The Number element is a child element of DataModel, Block, or Choice.
For numerical strings use a String element with a NumericalString hint. (Peach 2.3)
<Number size="16" signed="false" endian="big" />
Attributes:
name -- Name of the data model [required]
ref -- Reference to a data model to use as a template [optional]
minOccurs -- The minimum number of times this block must occur
maxOccurs -- The maximum number of times this block can occur
isStatic -- This element should be treated as a token when parsing, defaults to False [DEPRECATED] [optional]
token -- (Peach 2.3)This element should be treated as a token when parsing, defaults to False [optional]
size -- Size of Number in bites. Valid options are 8, 16, 24, 32, and 64. [required]
endian -- Byte order of number, defaults to little [optional]
signed -- Boolean indicating if the number is signed [optional, defaults to true]
pointer -- (Peach 2.3) Is this a pointer to a structure (true|false), default is false [optional]
pointerDepth -- (Peach 2.3) How many levels of pointers (e.g. void** p is 2), default is 1 [optional]
constraint -- (Peach 2.3) A constraint in the form of a python expression. Used during data cracking [optional]
mutable -- (Peach 2.3) Is data element changeable (should it be mutated), defaults to true [optional]
Valid Child-Elements:
Peach Fuzzing Platform