Set any table field as a string, regardless of what type it is.
| 325 | |
| 326 | // Set any table field as a string, regardless of what type it is. |
| 327 | inline bool SetAnyFieldS(Table *table, const reflection::Field &field, |
| 328 | const char *val) { |
| 329 | auto field_ptr = table->GetAddressOf(field.offset()); |
| 330 | if (!field_ptr) return false; |
| 331 | SetAnyValueS(field.type()->base_type(), field_ptr, val); |
| 332 | return true; |
| 333 | } |
| 334 | |
| 335 | // Set any struct field as a 64bit int, regardless of type what it is. |
| 336 | inline void SetAnyFieldI(Struct *st, const reflection::Field &field, |
nothing calls this directly
no test coverage detected