Struct TVMFFISeqCell#
Defined in File c_api.h
Inheritance Relationships#
Derived Type#
protected tvm::ffi::SeqBaseObj(Class SeqBaseObj)
Struct Documentation#
-
struct TVMFFISeqCell#
Sequence cell used by sequence-like containers.
ArrayObj and ListObj both inherit from this cell.
Subclassed by tvm::ffi::SeqBaseObj
Public Members
-
void *data#
Data pointer to the first element of the sequence.
-
int64_t size#
Number of elements used.
-
int64_t capacity#
Number of elements allocated.
-
void (*data_deleter)(void*)#
Optional deleter for the data buffer.
When non-null, data was allocated separately from the object (e.g. ListObj heap buffer) and data_deleter is called to free it.
When nullptr, data lives inside the object allocation itself (e.g. ArrayObj inplace storage via make_inplace_array_object) and is freed together with the object.
-
void *data#