Lines Matching refs:flatbuf
244 void AccessFlatBufferTest(const uint8_t *flatbuf, size_t length, in AccessFlatBufferTest() argument
247 flatbuffers::Verifier verifier(flatbuf, length); in AccessFlatBufferTest()
254 std::memcpy(&test_buff[0], flatbuf, length); in AccessFlatBufferTest()
255 std::memcpy(&test_buff[length], flatbuf, length); in AccessFlatBufferTest()
268 TEST_EQ(MonsterBufferHasIdentifier(flatbuf), true); in AccessFlatBufferTest()
272 auto monster = GetMonster(flatbuf); in AccessFlatBufferTest()
442 TEST_EQ(GetBufferStartFromRootPointer(monster), flatbuf); in AccessFlatBufferTest()
446 void MutateFlatBuffersTest(uint8_t *flatbuf, std::size_t length) { in MutateFlatBuffersTest() argument
448 auto monster = GetMutableMonster(flatbuf); in MutateFlatBuffersTest()
496 AccessFlatBufferTest(flatbuf, length); in MutateFlatBuffersTest()
500 void ObjectFlatBuffersTest(uint8_t *flatbuf) { in ObjectFlatBuffersTest() argument
517 auto monster1 = UnPackMonster(flatbuf, &resolver); in ObjectFlatBuffersTest()
898 void ReflectionTest(uint8_t *flatbuf, size_t length) { in ReflectionTest() argument
942 auto &root = *flatbuffers::GetAnyRoot(flatbuf); in ReflectionTest()
945 TEST_EQ(flatbuffers::Verify(schema, *schema.root_table(), flatbuf, length), in ReflectionTest()
993 TEST_EQ(flatbuffers::Verify(schema, *schema.root_table(), flatbuf, length), in ReflectionTest()
1001 std::vector<uint8_t> resizingbuf(flatbuf, flatbuf + length); in ReflectionTest()
1074 fbb, schema, *root_table, *flatbuffers::GetAnyRoot(flatbuf), true); in ReflectionTest()
1085 void MiniReflectFlatBuffersTest(uint8_t *flatbuf) { in MiniReflectFlatBuffersTest() argument
1087 flatbuffers::FlatBufferToString(flatbuf, Monster::MiniReflectTypeTable()); in MiniReflectFlatBuffersTest()
1138 auto flatbuf = fbb.Release(); in MiniReflectFixedLengthArrayTest() local
1140 flatbuf.data(), MyGame::Example::ArrayTableTypeTable()); in MiniReflectFixedLengthArrayTest()
3922 auto flatbuf = std::move(flatbuf1); // Test move assignment. in FlatBufferTests() local
3924 auto &flatbuf = flatbuf1; in FlatBufferTests() local
3931 AccessFlatBufferTest(flatbuf.data(), flatbuf.size()); in FlatBufferTests()
3933 MutateFlatBuffersTest(flatbuf.data(), flatbuf.size()); in FlatBufferTests()
3935 ObjectFlatBuffersTest(flatbuf.data()); in FlatBufferTests()
3937 MiniReflectFlatBuffersTest(flatbuf.data()); in FlatBufferTests()
3951 ReflectionTest(flatbuf.data(), flatbuf.size()); in FlatBufferTests()