
Edit properties of a number element
Number elements are probably the most frequently used elements in grammars for most file formats.
The attributes you can set for number elements:
- Repeat min: Minimum repeat count of this element. Set to zero if it's optional.
- Repeat max: Maximum repeat count of this element. Use this to map an array of numbers.
- Stroke color: The stroke color used in the hex view for this number element.
- Fill color: The fill color used in the hex view for this number element.
- Type: Can be
- Integer
- Floating Point
- Length: Can be 1, 2, 3, 4 or 8 bytes.
- Endianness: Interpret the number as little or big endian byte order? Little endian means that the most significant byte comes last, big endian numbers start with the most significant byte. See Wikipedia. Dynamic endianness can be controlled via scripting elements (requires Pro version)
- Signed: Is the number signed or unsigned?
- Display: Select here how the number should be displayed in the results. This also controls how the fixed numbers are displayed and edited
- Min Value: The minimum value of this number.
- Min Value: The maximum value of this number.
- Fixed Values: Often numbers are allowed to have only certain values. Edit here as many as you like.
- Must match: If you mark this check box and the parsed value is not one of the fixed values, the mapping of the structure enclosing this number element fails. This can be useful for structures inside variable-order structures.
- Masks: Masks allow the interpretation of single or multiple bits of a number and give them a name/meaning.