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

Method MakeIntArray

src/Array.cpp:1165–1181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1163}
1164
1165void VirtualArray_obj::MakeIntArray()
1166{
1167 if (store==arrayEmpty && base )
1168 {
1169 int len = base->length;
1170 base = new Array_obj<int>(len,len);
1171 }
1172 else if (!base)
1173 base = new Array_obj<int>(0,0);
1174 else
1175 {
1176 Array<int> result = Dynamic(base);
1177 base = result.mPtr;
1178 }
1179 store = arrayInt;
1180 HX_OBJ_WB_GET(this,base);
1181}
1182
1183void VirtualArray_obj::MakeInt64Array()
1184{

Callers

nothing calls this directly

Calls 1

DynamicClass · 0.50

Tested by

no test coverage detected