| 99 | } |
| 100 | |
| 101 | inline Type ToTypedVector(Type t, size_t fixed_len = 0) { |
| 102 | FLATBUFFERS_ASSERT(IsTypedVectorElementType(t)); |
| 103 | switch (fixed_len) { |
| 104 | case 0: return static_cast<Type>(t - FBT_INT + FBT_VECTOR_INT); |
| 105 | case 2: return static_cast<Type>(t - FBT_INT + FBT_VECTOR_INT2); |
| 106 | case 3: return static_cast<Type>(t - FBT_INT + FBT_VECTOR_INT3); |
| 107 | case 4: return static_cast<Type>(t - FBT_INT + FBT_VECTOR_INT4); |
| 108 | default: FLATBUFFERS_ASSERT(0); return FBT_NULL; |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | inline Type ToTypedVectorElementType(Type t) { |
| 113 | FLATBUFFERS_ASSERT(IsTypedVector(t)); |
no test coverage detected