mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-21 18:28:28 +00:00
Struct typetable (#5291)
* C++: Generate MiniReflectTypeTable for Structs as well as Tables * Update generated code * add test
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
98b9b5a933
commit
cef8f928bb
@@ -56,6 +56,9 @@ FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(4) StructInNestedNS FLATBUFFERS_FINAL_CLASS
|
||||
int32_t b_;
|
||||
|
||||
public:
|
||||
static const flatbuffers::TypeTable *MiniReflectTypeTable() {
|
||||
return StructInNestedNSTypeTable();
|
||||
}
|
||||
StructInNestedNS() {
|
||||
memset(static_cast<void *>(this), 0, sizeof(StructInNestedNS));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user