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

Method copy

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

Source from the content-addressed store, hash-verified

554
555template <typename T>
556array_t<T> array_t<T>::copy() const {
557 array_t<T> result = {
558 (T*)ARRAY_MALLOC(sizeof(T) * capacity),
559 count,
560 capacity
561 };
562 ARRAY_MEMCPY(result.data, data, sizeof(T) * count);
563 return result;
564}
565
566//////////////////////////////////////
567

Callers 1

model_copyFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected