1 = YAML static array field type objects
3 A _**static array field type object**_ is the type of static array data
4 fields, found in xref:how-barectf-works:ctf-primer.adoc#ds[data
7 A static array data field is a sequence of data fields, or
8 _elements_. In CTF, the number of elements in a static array data field
9 (its length) is found in the
10 xref:how-barectf-works:ctf-primer.adoc#trace[metadata stream].
15 [%autowidth.stretch, cols="d,d,a,d"]
17 |Name |Type |Description |{req-abbr}
19 |[[class-prop]]`class`
21 |This property's value must be `static-array`.
22 |Yes if the <<inherit-prop,`$inherit`>> property is not set.
24 include::partial$ft-obj-inherit-prop.adoc[]
26 |[[length-prop]]`length`
28 |Number of elements in this field type's instances.
31 |[[element-ft-prop]]`element-field-type`
32 |xref:ft-obj.adoc[Field type object] (except a
33 xref:struct-ft-obj.adoc[structure field type object] and a
34 xref:dyn-array-ft-obj.adoc[dynamic array field type object]) or string
35 |Type of each element (data fields) in this field type's instances.
37 If this property's value is a string, it must be the name of an existing
38 xref:trace-type-obj.adoc#ft-aliases-prop[field type alias]. This
39 field type must _not_ be a structure field type or a dynamic array
44 == Generated C{nbsp}types
46 Pointer to `const __T__`, where `__T__` is the generated C{nbsp}type for
47 the field type object of the <<element-ft-prop,`element-field-type`
54 |Element field type |Generated C{nbsp}type
56 |8-bit unsigned xref:int-ft-obj.adoc[integer]
59 |32-bit signed integer
62 |Single-precision xref:real-ft-obj.adoc[real]
65 |xref:str-ft-obj.adoc[String]
66 |`const char * const *`
68 |Static array of 16-bit signed integers
69 |`const int16_t * const *`
71 |Static array of double-precision reals
72 |`const double * const *`
74 |Static array of strings
75 |`const char * const * const *`
77 |Static array of static arrays of 32-bit unsigned integers
78 |`const uint32_t * const * const *`
83 .Static array field type object: <<length-prop,four>> 8-bit unsigned xref:int-ft-obj.adoc[integers].
89 element-field-type: uint8
93 .Static array field type object: <<length-prop,22>>{nbsp}xref:str-ft-obj.adoc[strings].
104 .Static array field type object: <<length-prop,five>> static arrays of 32{nbsp}double-precision xref:real-ft-obj.adoc[reals].