Searched refs:PreAlign (Results 1 – 2 of 2) sorted by relevance
445 void PreAlign(size_t len, size_t alignment) { in PreAlign() function450 template<typename T> void PreAlign(size_t len) { in PreAlign() function452 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()
1606 builder.PreAlign<flatbuffers::largest_scalar_t>(0); // Align whole buffer. in FuzzTest1()