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

Method make_from

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

Source from the content-addressed store, hash-verified

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 //////////////////////////////////////
167 // Linear search methods

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected