MCPcopy Create free account
hub / github.com/adriancable/eternal / DoCopy

Method DoCopy

doom/src/tarray.h:404–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402 unsigned int Count;
403
404 void DoCopy (const TArray<T> &other)
405 {
406 Most = Count = other.Count;
407 if (Count != 0)
408 {
409 Array = (T *)M_Malloc (sizeof(T)*Most);
410 for (unsigned int i = 0; i < Count; ++i)
411 {
412 ::new(&Array[i]) T(other.Array[i]);
413 }
414 }
415 else
416 {
417 Array = NULL;
418 }
419 }
420
421 void DoResize ()
422 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected