| 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) { |
nothing calls this directly
no test coverage detected