Type Alias: StructFieldType
StructFieldType =
TypeOrAlias|StructDef|EnumDef| [StructFieldType]
What a defineStruct field may be declared as:
- a primitive, by TypeAlias or as a types object —
including
'cstring'(achar *, packed from and unpacked to a JS string,nullfor a null pointer),'pointer'(a NativePointer ornull) and'bool_u8'/'bool_u32'; - another StructDef, laid out inline by value (or behind a pointer with StructFieldOptions.asPointer);
- an EnumDef;
- an ArrayType or StaticStringType, for an array laid out
inside the struct (
int cells[4],char name[8]); [ elementType ], a pointer to a run of elements whose count lives in the field that names this one in StructFieldOptions.lengthOf.