MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / Insert

Method Insert

src/Array.cpp:345–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343
344
345void ArrayBase::Insert(int inPos)
346{
347 if (inPos>=length)
348 resize(length+1);
349 else
350 {
351 resize(length+1);
352 int s = GetElementSize();
353 memmove(mBase + inPos*s + s, mBase+inPos*s, (length-inPos-1)*s );
354 }
355}
356
357void ArrayBase::Splice(ArrayBase *outResult,int inPos,int inLen)
358{

Callers

nothing calls this directly

Calls 2

resizeFunction · 0.50
GetElementSizeFunction · 0.50

Tested by

no test coverage detected