MCPcopy Create free account
hub / github.com/WheretIB/nullc / CopyObject

Method CopyObject

NULLC/StdLib.cpp:578–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

576}
577
578NULLCRef NULLC::CopyObject(NULLCRef ptr)
579{
580 NULLCRef ret;
581 ret.typeID = ptr.typeID;
582 unsigned int objSize = linker->exTypes[ret.typeID].size;
583 ret.ptr = (char*)AllocObject(objSize);
584 memcpy(ret.ptr, ptr.ptr, objSize);
585 return ret;
586}
587
588void NULLC::CopyArray(NULLCAutoArray* dst, NULLCAutoArray src)
589{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected