CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches

#include <stype.h>

Data Fields

stype type
 The stype this extends; always a valid, canonical stype.
 
uint32 flags
 See STypeInfoExtFlagsEnum.
 
strref name
 
const void * detail
 
const STypeInfoExtparam [2]
 Element type, or key type + value type.
 

Detailed Description

Structural, declaration-level information about a type, layered on top of an stype. See the stype_ext group overview for how this differs from STypeInfo.

cxautogen generates one of these for every serializable struct member, and a canonical STypeInfoExt – reached through the stExt(name) macro – for every serializable struct, class, structset, or classset. Built-in types have one too, e.g. stExt(int32). Pass the matching descriptor alongside a value so a consumer such as the serializer can agree on what it is – including element types for arrays and hashtables, and the concrete type for a value that could be one of several (see STIE_TypeSet).

Definition at line 1454 of file stype.h.

Field Documentation

◆ detail

const void* STypeInfoExt::detail

StructInfo*, ObjClassInfo*, StructSet*, or ClassSet*, depending on type and flags; NULL if not applicable.

Definition at line 1465 of file stype.h.

◆ name

strref STypeInfoExt::name

Name used to identify this type on the wire, or NULL if it doesn't need one (e.g. a plain int32 is always written the same way, so it isn't named), or if the type can't be serialized at all.

Definition at line 1461 of file stype.h.


The documentation for this struct was generated from the following file: