Home
last modified time | relevance | path

Searched refs:PreAlign (Results 1 – 2 of 2) sorted by relevance

/external/flatbuffers/include/flatbuffers/
Dflatbuffer_builder.h445 void PreAlign(size_t len, size_t alignment) { in PreAlign() function
450 template<typename T> void PreAlign(size_t len) { in PreAlign() function
452 PreAlign(len, sizeof(T)); in PreAlign()
462 PreAlign<uoffset_t>(len + 1); // Always 0-terminated. in CreateString()
595 PreAlign<uoffset_t>(len * elemsize); in StartVector()
596 PreAlign(len * elemsize, elemsize); // Just in case elemsize > uoffset_t. in StartVector()
607 PreAlign(len * elemsize, alignment); in ForceVectorAlignment()
614 PreAlign((len + 1) * sizeof(char), alignment); in ForceStringAlignment()
1118 PreAlign((size_prefix ? sizeof(uoffset_t) : 0) + sizeof(uoffset_t) + in Finish()
/external/flatbuffers/tests/
Dtest.cpp1606 builder.PreAlign<flatbuffers::largest_scalar_t>(0); // Align whole buffer. in FuzzTest1()