OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:flatbuf
(Results
1 - 4
of
4
) sorted by null
/external/flatbuffers/include/flatbuffers/
registry.h
40
bool FlatBufferToText(const uint8_t *
flatbuf
, size_t len, std::string *dest) {
48
reinterpret_cast<const char *>(
flatbuf
) + sizeof(uoffset_t),
54
if (!GenerateText(parser,
flatbuf
, dest)) {
reflection.h
66
inline Table *GetAnyRoot(uint8_t *
flatbuf
) {
67
return GetMutableRoot<Table>(
flatbuf
);
69
inline const Table *GetAnyRoot(const uint8_t *
flatbuf
) {
70
return GetRoot<Table>(
flatbuf
);
396
// "str" must live inside "
flatbuf
" and may be invalidated after this call.
400
const String *str, std::vector<uint8_t> *
flatbuf
,
405
// "vec" must live inside "
flatbuf
" and may be invalidated after this call.
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)
[
all
...]
/external/flatbuffers/src/
reflection.cpp
170
std::vector<uint8_t> *
flatbuf
,
173
startptr_(vector_data(*
flatbuf
) + start),
175
buf_(*
flatbuf
),
176
dag_check_(
flatbuf
->size() / sizeof(uoffset_t), false) {
300
const String *str, std::vector<uint8_t> *
flatbuf
,
304
reinterpret_cast<const uint8_t *>(str) - vector_data(*
flatbuf
));
308
memset(vector_data(*
flatbuf
) + start, 0, str->size());
310
ResizeContext(schema, start, delta,
flatbuf
, root_table);
312
WriteScalar(vector_data(*
flatbuf
) + str_start,
316
memcpy(vector_data(*
flatbuf
) + start, val.c_str(), val.size() + 1)
[
all
...]
/external/flatbuffers/tests/
test.cpp
207
void AccessFlatBufferTest(const uint8_t *
flatbuf
, size_t length,
210
flatbuffers::Verifier verifier(
flatbuf
, length);
217
std::memcpy(&test_buff[0],
flatbuf
, length);
218
std::memcpy(&test_buff[length],
flatbuf
, length);
231
TEST_EQ(MonsterBufferHasIdentifier(
flatbuf
), true);
235
auto monster = GetMonster(
flatbuf
);
387
TEST_EQ(GetBufferStartFromRootPointer(monster),
flatbuf
);
local
391
void MutateFlatBuffersTest(uint8_t *
flatbuf
, std::size_t length) {
393
auto monster = GetMutableMonster(
flatbuf
);
441
AccessFlatBufferTest(
flatbuf
, length)
2496
auto
flatbuf
= std::move(
flatbuf
1); \/\/ Test move assignment.
local
2498
auto &
flatbuf
=
flatbuf
1;
local
[
all
...]
Completed in 162 milliseconds