Struct TVMFFITypeMetadata#

Struct Documentation#

struct TVMFFITypeMetadata#

Extra information of object type that can be used for reflection.

Note

This information is optional and can be used to enable reflection based creation of the object.

Public Members

TVMFFIByteArray doc#

The docstring about the object.

TVMFFIObjectCreator creator#

An optional function that can create a new empty instance of the type.

When known_fixed_size is non-zero, creator can be called with nullptr passed to optional_bytes.

Note

Caller must call setter for each field to initialize the object for the final object to be in valid state.

Note

This field is optional to enable reflection based creation.

int32_t total_size#

Total size of the object struct, if it is fixed and known.

This field is set optional and set to 0 if not registered.

TVMFFISEqHashKind structural_eq_hash_kind#

Optional meta-data for structural eq/hash.