...

Text file src/github.com/google/flatbuffers/tests/monster_test.h

Documentation: github.com/google/flatbuffers/tests

     1#ifndef TESTS_MONSTER_TEST_H
     2#define TESTS_MONSTER_TEST_H
     3
     4#include <string>
     5
     6#include "flatbuffers/detached_buffer.h"
     7#include "monster_test_generated.h"
     8
     9namespace flatbuffers {
    10namespace tests {
    11
    12flatbuffers::DetachedBuffer CreateFlatBufferTest(std::string &buffer);
    13
    14void AccessFlatBufferTest(const uint8_t *flatbuf, size_t length,
    15                          bool pooled = true); 
    16
    17void MutateFlatBuffersTest(uint8_t *flatbuf, std::size_t length);
    18
    19void ObjectFlatBuffersTest(uint8_t *flatbuf);
    20
    21void CheckMonsterObject(MyGame::Example::MonsterT *monster2);
    22
    23void SizePrefixedTest();
    24
    25void TestMonsterExtraFloats(const std::string& tests_data_path);
    26
    27void EnumNamesTest();
    28
    29void TypeAliasesTest();
    30
    31void ParseAndGenerateTextTest(const std::string& tests_data_path, bool binary);
    32
    33void UnPackTo(const uint8_t *flatbuf);
    34
    35}  // namespace tests
    36}  // namespace flatbuffers
    37
    38#endif

View as plain text