Searched refs:flatbuf (Results 1 – 3 of 3) sorted by relevance
/external/flatbuffers/src/ |
D | reflection.cpp | 163 std::vector<uint8_t> *flatbuf, in ResizeContext() argument 165 : schema_(schema), startptr_(flatbuf->data() + start), in ResizeContext() 166 delta_(delta), buf_(*flatbuf), in ResizeContext() 167 dag_check_(flatbuf->size() / sizeof(uoffset_t), false) { in ResizeContext() 292 const String *str, std::vector<uint8_t> *flatbuf, in SetString() argument 296 reinterpret_cast<const uint8_t *>(str) - flatbuf->data()); in SetString() 300 memset(flatbuf->data() + start, 0, str->Length()); in SetString() 302 ResizeContext(schema, start, delta, flatbuf, root_table); in SetString() 304 WriteScalar(flatbuf->data() + str_start, in SetString() 308 memcpy(flatbuf->data() + start, val.c_str(), val.size() + 1); in SetString() [all …]
|
/external/flatbuffers/tests/ |
D | test.cpp | 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() [all …]
|
/external/flatbuffers/include/flatbuffers/ |
D | reflection.h | 54 inline Table *GetAnyRoot(uint8_t *flatbuf) { in GetAnyRoot() argument 55 return GetMutableRoot<Table>(flatbuf); in GetAnyRoot() 57 inline const Table *GetAnyRoot(const uint8_t *flatbuf) { in GetAnyRoot() argument 58 return GetRoot<Table>(flatbuf); in GetAnyRoot() 376 const String *str, std::vector<uint8_t> *flatbuf, 386 uoffset_t elem_size, std::vector<uint8_t> *flatbuf, 392 const Vector<T> *vec, std::vector<uint8_t> *flatbuf, 398 static_cast<uoffset_t>(sizeof(T)), flatbuf, 421 const uint8_t *AddFlatBuffer(std::vector<uint8_t> &flatbuf,
|