MCPcopy Create free account
hub / github.com/BinomialLLC/basis_universal / enlarge_vector

Function enlarge_vector

transcoder/basisu.h:212–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210
211 template<typename T> inline void clear_vector(T &vec) { vec.erase(vec.begin(), vec.end()); }
212 template<typename T> inline typename T::value_type *enlarge_vector(T &vec, size_t n) { size_t cs = vec.size(); vec.resize(cs + n); return &vec[cs]; }
213
214 inline bool is_pow2(uint32_t x) { return x && ((x & (x - 1U)) == 0U); }
215 inline bool is_pow2(uint64_t x) { return x && ((x & (x - 1U)) == 0U); }

Callers 4

generate_mipmapsMethod · 0.85
read_source_imagesMethod · 0.85

Calls 2

sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected