MCPcopy Create free account
hub / github.com/apache/tvm-ffi / data

Method data

include/tvm/ffi/string.h:169–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167 }
168
169 const char* data() const noexcept {
170 if (data_.type_index < TypeIndex::kTVMFFIStaticObjectBegin) {
171 return data_.v_bytes;
172 } else {
173 // NOLINTNEXTLINE(clang-analyzer-security.ArrayBound)
174 return TVMFFIBytesGetByteArrayPtr(data_.v_obj)->data;
175 }
176 }
177
178 size_t size() const noexcept {
179 if (data_.type_index < TypeIndex::kTVMFFIStaticObjectBegin) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected