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

Method CopyArray

NULLC/StdLib.cpp:588–594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

586}
587
588void NULLC::CopyArray(NULLCAutoArray* dst, NULLCAutoArray src)
589{
590 dst->typeID = src.typeID;
591 dst->len = src.len;
592 dst->ptr = (char*)NULLC::AllocObject(src.len * linker->exTypes[src.typeID].size);
593 memcpy(dst->ptr, src.ptr, src.len * linker->exTypes[src.typeID].size);
594}
595
596NULLCRef NULLC::ReplaceObject(NULLCRef l, NULLCRef r)
597{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected