MCPcopy Create free account
hub / github.com/XJTU-Graphics/dandelion / GetArrayCopy

Function GetArrayCopy

deps/assimp/code/Common/SceneCombiner.cpp:986–994  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

984// ------------------------------------------------------------------------------------------------
985template <typename Type>
986inline void GetArrayCopy(Type *&dest, ai_uint num) {
987 if (!dest) {
988 return;
989 }
990 Type *old = dest;
991
992 dest = new Type[num];
993 std::copy(old, old+num, dest);
994}
995
996// ------------------------------------------------------------------------------------------------
997void SceneCombiner::CopySceneFlat(aiScene **_dest, const aiScene *src) {

Callers 1

CopyMethod · 0.85

Calls 1

copyFunction · 0.50

Tested by

no test coverage detected