YAML integer field type objects
Integer field type objects are the types of integer data fields, found in data streams.
Properties
Name | Type | Description | Req? | Default |
---|---|---|---|---|
String |
This property’s value must be one of:
|
Yes if the |
||
String |
Name of a field type alias from which to inherit. |
Yes if the |
||
Positive integer |
Size of this field type’s instances (bits). This property’s value must be in the [1, 64] range. |
Yes |
||
Power-of-two integer |
Alignment of the first bit of this field type’s instances within a CTF packet (bits). |
No |
8 if the |
|
String |
The preferred base (radix) to use when displaying this field type’s instances. The value of this property is only a hint to CTF consumers; they don’t have to consider it. This property’s value must be one of:
|
No |
Decimal preferred display base |
Generated C types
Depending on the signedness of the integer field type and on the
value of its size
property:
Signedness / Size (bits) | [1, 8] | [9, 16] | [17, 32] | [33, 64] |
---|---|---|---|---|
Unsigned |
|
|
|
|
Signed |
|
|
|
|
Examples
class: unsigned-integer
size: 8
class: signed-integer
size: 23
class: signed-integer
size: 16
alignment: 32
class: unsigned-integer
size: 32
preferred-display-base: hexadecimal