MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / make_fill

Method make_fill

StereoKitC/libraries/array.h:163–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161
162 static array_t<T> make (int32_t capacity) { array_t<T> result = {}; result.resize(capacity); return result; }
163 static array_t<T> make_fill(int32_t capacity, const T &copy_from) { array_t<T> result = {}; result.resize(capacity); result.count = capacity; for(int32_t i=0;i<capacity;i+=1) result.data[i]=copy_from; return result; }
164 static array_t<T> make_from(T *use_memory, int32_t count) { return {use_memory, count, count}; }
165
166 //////////////////////////////////////

Callers

nothing calls this directly

Calls 1

resizeMethod · 0.45

Tested by

no test coverage detected