mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-01 17:57:25 +00:00
code gen flexbuffer verifier (#7207)
* code gen flexbuffer verifier * remove verify nested flexbuffers from flexbuffers * made function static, and placed higher in file * moved function to own header
This commit is contained in:
parent
bf17df346e
commit
f083b33f2a
10 changed files with 54 additions and 19 deletions
|
|
@ -20,6 +20,7 @@
|
|||
// This is an experimental feature and could change at any time.
|
||||
|
||||
#include "flatbuffers/flatbuffers.h"
|
||||
#include "flatbuffers/flex_flat_util.h"
|
||||
#include "flatbuffers/flexbuffers.h"
|
||||
#include "flatbuffers/idl.h"
|
||||
#include "flatbuffers/minireflect.h"
|
||||
|
|
@ -167,13 +168,13 @@ void StringifyAnyFlatbuffersTypeTest() {
|
|||
** Test Traits::FieldType
|
||||
*******************************************************************************/
|
||||
using pos_type = Monster::Traits::FieldType<0>;
|
||||
static_assert(std::is_same_v<pos_type, const Vec3*>);
|
||||
static_assert(std::is_same_v<pos_type, const Vec3 *>);
|
||||
|
||||
using mana_type = Monster::Traits::FieldType<1>;
|
||||
static_assert(std::is_same_v<mana_type, int16_t>);
|
||||
|
||||
using name_type = Monster::Traits::FieldType<3>;
|
||||
static_assert(std::is_same_v<name_type, const flatbuffers::String*>);
|
||||
static_assert(std::is_same_v<name_type, const flatbuffers::String *>);
|
||||
|
||||
/*******************************************************************************
|
||||
** Generic Create Function Test.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue