MCPcopy Create free account
hub / github.com/ZDoom/Raze / DoCopy

Method DoCopy

source/common/utility/tarray.h:870–885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

868 unsigned int Most;
869
870 void DoCopy (const TArray<T> &other)
871 {
872 Most = Count = other.Count;
873 if (Count != 0)
874 {
875 Array = (T *)M_Malloc (sizeof(T)*Most);
876 for (unsigned int i = 0; i < Count; ++i)
877 {
878 ::new(&Array[i]) T(other.Array[i]);
879 }
880 }
881 else
882 {
883 Array = NULL;
884 }
885 }
886
887 void DoResize ()
888 {

Callers

nothing calls this directly

Calls 1

M_MallocFunction · 0.85

Tested by

no test coverage detected