Struct TVMFFIByteArray#

Inheritance Relationships#

Derived Type#

  • public tvm::ffi::details::BytesObjBase

Struct Documentation#

struct TVMFFIByteArray#

Byte array data structure used by String and Bytes.

String and Bytes object layout = { TVMFFIObject, TVMFFIByteArray, … }

Note

This byte array data structure layout differs in 32/64 bit platforms. as size_t equals to the size of the pointer, use this convetion to be consistent with std::string and also avoid need to calculate padding for the size field on 32-bit platforms. The FFI binding should be careful when treating this ABI.

Subclassed by tvm::ffi::details::BytesObjBase

Public Members

const char *data#

The data pointer.

size_t size#

The size of the data.