Struct TVMFFIAny#
Defined in File c_api.h
Struct Documentation#
-
struct TVMFFIAny#
C-based type of all on stack Any value.
Any value can hold on stack values like int, as well as reference counted pointers to object.
Public Members
-
int32_t type_index#
type index of the object.
Note
The type index of Object and Any are shared in FFI.
-
uint32_t zero_padding#
padding, must set to zero for values other than small string.
-
uint32_t small_str_len#
Length of small string, with a max value of 7.
We keep small str to start at next 4 bytes to ensure alignment when accessing the small str content.
-
int64_t v_int64#
integers
-
double v_float64#
floating-point numbers
-
void *v_ptr#
typeless pointers
-
const char *v_c_str#
raw C-string
-
TVMFFIObject *v_obj#
ref counted objects
-
DLDataType v_dtype#
data type
-
DLDevice v_device#
device
-
char v_bytes[8]#
small string
-
uint64_t v_uint64#
uint64 repr mainly used for hashing
-
int32_t type_index#