Set any table field as a 64bit int, regardless of type what it is.
| 307 | |
| 308 | // Set any table field as a 64bit int, regardless of type what it is. |
| 309 | inline bool SetAnyFieldI(Table *table, const reflection::Field &field, |
| 310 | int64_t val) { |
| 311 | auto field_ptr = table->GetAddressOf(field.offset()); |
| 312 | if (!field_ptr) return val == GetFieldDefaultI<int64_t>(field); |
| 313 | SetAnyValueI(field.type()->base_type(), field_ptr, val); |
| 314 | return true; |
| 315 | } |
| 316 | |
| 317 | // Set any table field as a double, regardless of what type it is. |
| 318 | inline bool SetAnyFieldF(Table *table, const reflection::Field &field, |
nothing calls this directly
no test coverage detected