Home
last modified time | relevance | path

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

/external/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()
310 const String *str, std::vector<uint8_t> *flatbuf, in SetString() argument
314 reinterpret_cast<const uint8_t *>(str) - vector_data(*flatbuf)); in SetString()
318 memset(vector_data(*flatbuf) + start, 0, str->size()); in SetString()
320 ResizeContext(schema, start, delta, flatbuf, root_table); in SetString()
322 WriteScalar(vector_data(*flatbuf) + str_start, in SetString()
326 memcpy(vector_data(*flatbuf) + start, val.c_str(), val.size() + 1); in SetString()
[all …]
/external/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.h66 inline Table *GetAnyRoot(uint8_t *flatbuf) { in GetAnyRoot() argument
67 return GetMutableRoot<Table>(flatbuf); in GetAnyRoot()
69 inline const Table *GetAnyRoot(const uint8_t *flatbuf) { in GetAnyRoot() argument
70 return GetRoot<Table>(flatbuf); in GetAnyRoot()
400 const String *str, std::vector<uint8_t> *flatbuf,
410 uoffset_t elem_size, std::vector<uint8_t> *flatbuf,
415 const Vector<T> *vec, std::vector<uint8_t> *flatbuf,
420 static_cast<uoffset_t>(sizeof(T)), flatbuf, root_table);
441 const uint8_t *AddFlatBuffer(std::vector<uint8_t> &flatbuf,
/external/flatbuffers/tests/
Dtest.cpp235 void AccessFlatBufferTest(const uint8_t *flatbuf, size_t length, in AccessFlatBufferTest() argument
238 flatbuffers::Verifier verifier(flatbuf, length); in AccessFlatBufferTest()
245 std::memcpy(&test_buff[0], flatbuf, length); in AccessFlatBufferTest()
246 std::memcpy(&test_buff[length], flatbuf, length); in AccessFlatBufferTest()
259 TEST_EQ(MonsterBufferHasIdentifier(flatbuf), true); in AccessFlatBufferTest()
263 auto monster = GetMonster(flatbuf); in AccessFlatBufferTest()
424 TEST_EQ(GetBufferStartFromRootPointer(monster), flatbuf); in AccessFlatBufferTest()
428 void MutateFlatBuffersTest(uint8_t *flatbuf, std::size_t length) { in MutateFlatBuffersTest() argument
430 auto monster = GetMutableMonster(flatbuf); in MutateFlatBuffersTest()
478 AccessFlatBufferTest(flatbuf, length); in MutateFlatBuffersTest()
[all …]
/external/libfuse/lib/
Dfuse.c1907 struct fuse_buf *flatbuf; in fuse_fs_write_buf() local
1912 flatbuf = &buf->buf[0]; in fuse_fs_write_buf()
1925 flatbuf = &tmp.buf[0]; in fuse_fs_write_buf()
1928 res = fs->op.write(path, flatbuf->mem, flatbuf->size, in fuse_fs_write_buf()
/external/flatbuffers/docs/source/
DCppUsage.md312 auto s = flatbuffers::FlatBufferToString(flatbuf, MonsterTypeTable());