Home
last modified time | relevance | path

Searched refs:flatbuf (Results 1 – 5 of 5) sorted by relevance

/third_party/flatbuffers/src/
Dreflection.cpp180 std::vector<uint8_t> *flatbuf, in ResizeContext() argument
183 startptr_(vector_data(*flatbuf) + start), in ResizeContext()
185 buf_(*flatbuf), in ResizeContext()
186 dag_check_(flatbuf->size() / sizeof(uoffset_t), false) { in ResizeContext()
308 const String *str, std::vector<uint8_t> *flatbuf, in SetString() argument
312 reinterpret_cast<const uint8_t *>(str) - vector_data(*flatbuf)); in SetString()
316 memset(vector_data(*flatbuf) + start, 0, str->size()); in SetString()
318 ResizeContext(schema, start, delta, flatbuf, root_table); in SetString()
320 WriteScalar(vector_data(*flatbuf) + str_start, in SetString()
324 memcpy(vector_data(*flatbuf) + start, val.c_str(), val.size() + 1); in SetString()
[all …]
/third_party/flatbuffers/include/flatbuffers/
Dregistry.h40 bool FlatBufferToText(const uint8_t *flatbuf, size_t len, std::string *dest) { in FlatBufferToText() argument
48 reinterpret_cast<const char *>(flatbuf) + sizeof(uoffset_t), in FlatBufferToText()
54 if (!GenerateText(parser, flatbuf, dest)) { in FlatBufferToText()
Dreflection.h91 inline Table *GetAnyRoot(uint8_t *flatbuf) { in GetAnyRoot() argument
92 return GetMutableRoot<Table>(flatbuf); in GetAnyRoot()
94 inline const Table *GetAnyRoot(const uint8_t *flatbuf) { in GetAnyRoot() argument
95 return GetRoot<Table>(flatbuf); in GetAnyRoot()
424 const String *str, std::vector<uint8_t> *flatbuf,
434 uoffset_t elem_size, std::vector<uint8_t> *flatbuf,
439 const Vector<T> *vec, std::vector<uint8_t> *flatbuf,
444 static_cast<uoffset_t>(sizeof(T)), flatbuf, root_table);
465 const uint8_t *AddFlatBuffer(std::vector<uint8_t> &flatbuf,
/third_party/flatbuffers/tests/
Dtest.cpp244 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()
[all …]
/third_party/flatbuffers/docs/source/
DCppUsage.md340 auto s = flatbuffers::FlatBufferToString(flatbuf, MonsterTypeTable());