| 888 | } |
| 889 | |
| 890 | inline bool VerifySparseTensorIndex(::flatbuffers::Verifier &verifier, const void *obj, SparseTensorIndex type) { |
| 891 | switch (type) { |
| 892 | case SparseTensorIndex_NONE: { |
| 893 | return true; |
| 894 | } |
| 895 | case SparseTensorIndex_SparseTensorIndexCOO: { |
| 896 | auto ptr = reinterpret_cast<const org::apache::arrow::flatbuf::SparseTensorIndexCOO *>(obj); |
| 897 | return verifier.VerifyTable(ptr); |
| 898 | } |
| 899 | case SparseTensorIndex_SparseMatrixIndexCSX: { |
| 900 | auto ptr = reinterpret_cast<const org::apache::arrow::flatbuf::SparseMatrixIndexCSX *>(obj); |
| 901 | return verifier.VerifyTable(ptr); |
| 902 | } |
| 903 | case SparseTensorIndex_SparseTensorIndexCSF: { |
| 904 | auto ptr = reinterpret_cast<const org::apache::arrow::flatbuf::SparseTensorIndexCSF *>(obj); |
| 905 | return verifier.VerifyTable(ptr); |
| 906 | } |
| 907 | default: return true; |
| 908 | } |
| 909 | } |
| 910 | |
| 911 | inline bool VerifySparseTensorIndexVector(::flatbuffers::Verifier &verifier, const ::flatbuffers::Vector<::flatbuffers::Offset<void>> *values, const ::flatbuffers::Vector<uint8_t> *types) { |
| 912 | if (!values || !types) return !values && !types; |
no outgoing calls
no test coverage detected