MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / GetArrayCopy

Function GetArrayCopy

Engine/lib/assimp/code/Common/SceneCombiner.cpp:980–988  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

978// ------------------------------------------------------------------------------------------------
979template <typename Type>
980inline void GetArrayCopy(Type *&dest, ai_uint num) {
981 if (!dest) {
982 return;
983 }
984 Type *old = dest;
985
986 dest = new Type[num];
987 ::memcpy(dest, old, sizeof(Type) * num);
988}
989
990// ------------------------------------------------------------------------------------------------
991void SceneCombiner::CopySceneFlat(aiScene **_dest, const aiScene *src) {

Callers 1

CopyMethod · 0.85

Calls 1

memcpyFunction · 0.85

Tested by

no test coverage detected