Generate C++ function returning the file_identifier of a flatbuffer

Change-Id: I6ee09cf1e86a41b73bb3aa79b68871afb1a4e34f
This commit is contained in:
Lars Magnusson
2014-11-30 11:34:03 +08:00
committed by Wouter van Oortmerssen
parent 2d9b3ade18
commit 354fd906a5
3 changed files with 19 additions and 10 deletions

View File

@@ -117,6 +117,7 @@ void AccessFlatBufferTest(const std::string &flatbuf) {
flatbuf.length());
TEST_EQ(VerifyMonsterBuffer(verifier), true);
TEST_EQ(strcmp(MonsterIdentifier(), "MONS"), 0);
TEST_EQ(MonsterBufferHasIdentifier(flatbuf.c_str()), true);
// Access the buffer from the root.