Get a field, if you know it's a table.
| 148 | |
| 149 | // Get a field, if you know it's a table. |
| 150 | inline Table *GetFieldT(const Table &table, const reflection::Field &field) { |
| 151 | FLATBUFFERS_ASSERT(field.type()->base_type() == reflection::Obj || |
| 152 | field.type()->base_type() == reflection::Union); |
| 153 | return table.GetPointer<Table *>(field.offset()); |
| 154 | } |
| 155 | |
| 156 | // Get a field, if you know it's a struct. |
| 157 | inline const Struct *GetFieldStruct(const Table &table, |
no outgoing calls
no test coverage detected