MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / ArrayDup

Function ArrayDup

src/luxcore/luxparser/luxparse.cpp:546–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544}
545
546ParamArray *ArrayDup(ParamArray *ra)
547{
548 ParamArray *ret = new ParamArray;
549 ret->elementSize = ra->elementSize;
550 ret->allocated = ra->allocated;
551 ret->nelems = ra->nelems;
552 ret->array = malloc(ra->nelems * ra->elementSize);
553 memcpy(ret->array, ra->array, ra->nelems * ra->elementSize);
554 return ret;
555}
556
557void ArrayFree(ParamArray *ra)
558{

Callers 1

yyparseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected