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

Function insert

include/Array.h:827–842  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

825 Array<ELEM_> filter(FilterFunc inFunc);
826
827 void insert(int inPos, ELEM_ inValue)
828 {
829 if (inPos<0)
830 {
831 inPos+=length;
832 if (inPos<0) inPos = 0;
833 }
834 else if (inPos>length)
835 inPos = length;
836 hx::ArrayBase::Insert(inPos);
837 Item(inPos) = inValue;
838 #ifdef HXCPP_GC_GENERATIONAL
839 if (hx::ContainsPointers<ELEM_>())
840 { HX_OBJ_WB_GET(this,hx::PointerOf(inValue)); }
841 #endif
842 }
843
844 void unshift(ELEM_ inValue)
845 {

Callers 2

unshiftFunction · 0.70
__insertFunction · 0.70

Calls 1

PointerOfFunction · 0.85

Tested by

no test coverage detected