Get any table field as a 64bit int, regardless of what type it is.
| 184 | |
| 185 | // Get any table field as a 64bit int, regardless of what type it is. |
| 186 | inline int64_t GetAnyFieldI(const Table &table, |
| 187 | const reflection::Field &field) { |
| 188 | auto field_ptr = table.GetAddressOf(field.offset()); |
| 189 | return field_ptr ? GetAnyValueI(field.type()->base_type(), field_ptr) |
| 190 | : field.default_integer(); |
| 191 | } |
| 192 | |
| 193 | // Get any table field as a double, regardless of what type it is. |
| 194 | inline double GetAnyFieldF(const Table &table, const reflection::Field &field) { |
nothing calls this directly
no test coverage detected