File: monster_test.h

package info (click to toggle)
golang-github-google-flatbuffers 24.3.25-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 17,356 kB
  • sloc: cpp: 49,726; python: 6,901; cs: 5,566; java: 4,370; ansic: 2,512; php: 1,460; javascript: 1,053; xml: 1,016; sh: 870; makefile: 13
file content (38 lines) | stat: -rw-r--r-- 881 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef TESTS_MONSTER_TEST_H
#define TESTS_MONSTER_TEST_H

#include <string>

#include "flatbuffers/detached_buffer.h"
#include "monster_test_generated.h"

namespace flatbuffers {
namespace tests {

flatbuffers::DetachedBuffer CreateFlatBufferTest(std::string &buffer);

void AccessFlatBufferTest(const uint8_t *flatbuf, size_t length,
                          bool pooled = true); 

void MutateFlatBuffersTest(uint8_t *flatbuf, std::size_t length);

void ObjectFlatBuffersTest(uint8_t *flatbuf);

void CheckMonsterObject(MyGame::Example::MonsterT *monster2);

void SizePrefixedTest();

void TestMonsterExtraFloats(const std::string& tests_data_path);

void EnumNamesTest();

void TypeAliasesTest();

void ParseAndGenerateTextTest(const std::string& tests_data_path, bool binary);

void UnPackTo(const uint8_t *flatbuf);

}  // namespace tests
}  // namespace flatbuffers

#endif