MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / AlignmentPadVector

Function AlignmentPadVector

Bcore/src/main/cpp/dex/compact_dex_utils.h:28–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26// Add padding to the end of the array until the size is aligned.
27template <typename T, template<typename> class Allocator>
28static inline void AlignmentPadVector(std::vector<T, Allocator<T>>* dest,
29 size_t alignment) {
30 while (!IsAlignedParam(dest->size(), alignment)) {
31 dest->push_back(T());
32 }
33}
34
35} // namespace art_lkchan
36

Callers 1

BuildMethod · 0.85

Calls 2

IsAlignedParamFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected