Struct TVMFFITypeInfo#
Defined in File c_api.h
Struct Documentation#
-
struct TVMFFITypeInfo#
Runtime type information for object type checking.
Public Members
-
int32_t type_index#
The runtime type index, It can be allocated during runtime if the type is dynamic.
-
int32_t type_depth#
number of parent types in the type hierachy.
-
TVMFFIByteArray type_key#
the unique type key to identify the type.
-
const struct TVMFFITypeInfo **type_ancestors#
type_ancestors[depth] stores the type_index of the acenstors at depth level
Note
To keep things simple, we do not allow multiple inheritance so the hieracy stays as a tree
-
uint64_t type_key_hash#
Cached hash value of the type key, used for consistent structural hashing.
-
int32_t num_fields#
number of reflection accessible fields.
-
int32_t num_methods#
number of reflection acccesible methods.
-
const TVMFFIFieldInfo *fields#
The reflection field information.
-
const TVMFFIMethodInfo *methods#
The reflection method.
-
const TVMFFITypeMetadata *metadata#
The extra information of the type.
-
int32_t type_index#