
Edit properties of a string element
The attributes you can set for string 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 strings.
- Stroke color: The stroke color used in the hex view for this string element.
- Fill color: The fill color used in the hex view for this string element.
- Type: Can be
- Fixed length - specify the string length in the field length
- Zero terminated - the end of the string is marked with a zero byte (or two for double-byte characters)
- Pascal - the string length is stored in the first byte, followed by the characters
- Length: The length of the string in bytes.
- Encoding: The string character encoding
- Fixed Values: Sometimes strings 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 string is not one of the fixed values, the mapping of the structure enclosing this string element fails. This can be useful for structures inside variable-order structures.