Reflection: generically copy (parts of) FlatBuffers.

Change-Id: Ief3f1507c003079eac90c2bb6c2abd64a80a0a34
Tested: on Linux.
This commit is contained in:
Wouter van Oortmerssen
2015-06-23 16:06:35 -07:00
parent 1c152cc72a
commit cb2b2be54e
8 changed files with 306 additions and 88 deletions

View File

@@ -1354,7 +1354,9 @@ Offset<reflection::Object> StructDef::Serialize(FlatBufferBuilder *builder)
builder->CreateString(name),
builder->CreateVectorOfSortedTables(
&field_offsets),
fixed);
fixed,
static_cast<int>(minalign),
static_cast<int>(bytesize));
}
Offset<reflection::Field> FieldDef::Serialize(FlatBufferBuilder *builder,