Lines Matching refs:fielddef

87             auto &fielddef = **it;  in GetAnyValueS()  local
88 if (!table_field->CheckField(fielddef.offset())) continue; in GetAnyValueS()
89 auto val = GetAnyFieldS(*table_field, fielddef, schema); in GetAnyValueS()
90 if (fielddef.type()->base_type() == reflection::String) in GetAnyValueS()
92 s += fielddef.name()->str(); in GetAnyValueS()
220 auto &fielddef = **it; in ResizeTable() local
221 auto base_type = fielddef.type()->base_type(); in ResizeTable()
225 auto offset = table->GetOptionalFieldOffset(fielddef.offset()); in ResizeTable()
229 schema_.objects()->Get(fielddef.type()->index()) : nullptr; in ResizeTable()
244 auto elem_type = fielddef.type()->element(); in ResizeTable()
249 ? schema_.objects()->Get(fielddef.type()->index()) in ResizeTable()
264 ResizeTable(GetUnionType(schema_, objectdef, fielddef, *table), in ResizeTable()
352 void CopyInline(FlatBufferBuilder &fbb, const reflection::Field &fielddef, in CopyInline() argument
355 fbb.PushBytes(table.GetStruct<const uint8_t *>(fielddef.offset()), size); in CopyInline()
356 fbb.TrackField(fielddef.offset(), fbb.GetSize()); in CopyInline()
369 auto &fielddef = **it; in CopyTable() local
371 if (!table.CheckField(fielddef.offset())) continue; in CopyTable()
373 switch (fielddef.type()->base_type()) { in CopyTable()
376 ? fbb.CreateSharedString(GetFieldS(table, fielddef)).o in CopyTable()
377 : fbb.CreateString(GetFieldS(table, fielddef)).o; in CopyTable()
381 auto &subobjectdef = *schema.objects()->Get(fielddef.type()->index()); in CopyTable()
384 *GetFieldT(table, fielddef)).o; in CopyTable()
389 auto &subobjectdef = GetUnionType(schema, objectdef, fielddef, table); in CopyTable()
391 *GetFieldT(table, fielddef)).o; in CopyTable()
396 fielddef.offset()); in CopyTable()
397 auto element_base_type = fielddef.type()->element(); in CopyTable()
399 ? schema.objects()->Get(fielddef.type()->index()) in CopyTable()
450 auto &fielddef = **it; in CopyTable() local
451 if (!table.CheckField(fielddef.offset())) continue; in CopyTable()
452 auto base_type = fielddef.type()->base_type(); in CopyTable()
455 auto &subobjectdef = *schema.objects()->Get(fielddef.type()->index()); in CopyTable()
457 CopyInline(fbb, fielddef, table, subobjectdef.minalign(), in CopyTable()
466 fbb.AddOffset(fielddef.offset(), Offset<void>(offsets[offset_idx++])); in CopyTable()
470 CopyInline(fbb, fielddef, table, size, size); in CopyTable()