Lines Matching refs:flatbuf

162 void AccessFlatBufferTest(const uint8_t *flatbuf, size_t length,  in AccessFlatBufferTest()  argument
166 flatbuffers::Verifier verifier(flatbuf, length); in AccessFlatBufferTest()
171 std::memcpy(&test_buff[0], flatbuf , length); in AccessFlatBufferTest()
172 std::memcpy(&test_buff[length], flatbuf , length); in AccessFlatBufferTest()
187 TEST_EQ(MonsterBufferHasIdentifier(flatbuf), true); in AccessFlatBufferTest()
191 auto monster = GetMonster(flatbuf); in AccessFlatBufferTest()
275 TEST_EQ(GetBufferStartFromRootPointer(monster), flatbuf); in AccessFlatBufferTest()
279 void MutateFlatBuffersTest(uint8_t *flatbuf, std::size_t length) { in MutateFlatBuffersTest() argument
281 auto monster = GetMutableMonster(flatbuf); in MutateFlatBuffersTest()
315 AccessFlatBufferTest(flatbuf, length); in MutateFlatBuffersTest()
319 void ObjectFlatBuffersTest(uint8_t *flatbuf) { in ObjectFlatBuffersTest() argument
336 auto monster1 = UnPackMonster(flatbuf, &resolver); in ObjectFlatBuffersTest()
461 void ReflectionTest(uint8_t *flatbuf, size_t length) { in ReflectionTest() argument
497 auto &root = *flatbuffers::GetAnyRoot(flatbuf); in ReflectionTest()
500 TEST_EQ(flatbuffers::Verify(schema, *schema.root_table(), flatbuf, length), in ReflectionTest()
546 TEST_EQ(flatbuffers::Verify(schema, *schema.root_table(), flatbuf, length), in ReflectionTest()
554 std::vector<uint8_t> resizingbuf(flatbuf, flatbuf + length); in ReflectionTest()
626 *flatbuffers::GetAnyRoot(flatbuf), in ReflectionTest()
1427 auto flatbuf = CreateFlatBufferTest(rawbuf); in main() local
1430 AccessFlatBufferTest(flatbuf.get(), rawbuf.length()); in main()
1432 MutateFlatBuffersTest(flatbuf.get(), rawbuf.length()); in main()
1434 ObjectFlatBuffersTest(flatbuf.get()); in main()
1440 ReflectionTest(flatbuf.get(), rawbuf.length()); in main()