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

Function init

include/Array.h:676–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

674 Array_obj<ELEM_> *Add(const ELEM_ &inItem) { push(inItem); return this; }
675
676 Array<ELEM_> init(int inIndex, ELEM_ inValue)
677 {
678 * (ELEM_ *)(mBase + inIndex*sizeof(ELEM_)) = inValue;
679 #ifdef HXCPP_GC_GENERATIONAL
680 if (hx::ContainsPointers<ELEM_>())
681 { HX_OBJ_WB_GET(this, hx::PointerOf(inValue)); }
682 #endif
683 return this;
684 }
685
686
687 #ifdef HXCPP_GC_GENERATIONAL

Callers

nothing calls this directly

Calls 1

PointerOfFunction · 0.85

Tested by

no test coverage detected