mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-27 01:32:18 +00:00
added support for parsing hash on vector elements (#4502)
* added support for parsing hash on vector elements reversed check for scalar to check for vector added C++ generation of cpp_type vectors removed ctor call for vector fields added condition !vector for cpp_type check added Pack() and UnPack() code generation for vector of hashes * schema change: added table Referrable and weak references towards it from Monster added single_weak_reference to Monster table changed order with vector_of_weak_references * re-generated monster schema dependent code added Referrable.cs to FlatBuffers.Test.csproj
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
132e6a8220
commit
59e26017cb
@@ -44,6 +44,10 @@ table Stat {
|
||||
count:ushort;
|
||||
}
|
||||
|
||||
table Referrable {
|
||||
id:ulong(key, hash:"fnv1a_64");
|
||||
}
|
||||
|
||||
/// an example documentation comment: monster object
|
||||
table Monster {
|
||||
pos:Vec3 (id: 0);
|
||||
@@ -82,6 +86,9 @@ table Monster {
|
||||
vector_of_longs:[long] (id:32);
|
||||
vector_of_doubles:[double] (id:33);
|
||||
parent_namespace_test:InParentNamespace (id:34);
|
||||
vector_of_referrables:[Referrable](id:35);
|
||||
single_weak_reference:ulong(id:36, hash:"fnv1a_64", cpp_type:"ReferrableT");
|
||||
vector_of_weak_references:[ulong](id:37, hash:"fnv1a_64", cpp_type:"ReferrableT");
|
||||
}
|
||||
|
||||
table TypeAliases {
|
||||
|
||||
Reference in New Issue
Block a user