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

Method MakeFloatArray

src/Array.cpp:1260–1276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1258
1259
1260void VirtualArray_obj::MakeFloatArray()
1261{
1262 if (store==arrayEmpty && base )
1263 {
1264 int len = base->length;
1265 base = new Array_obj<Float>(len,len);
1266 }
1267 else if (!base)
1268 base = new Array_obj<Float>(0,0);
1269 else
1270 {
1271 Array<Float> result = Dynamic(base);
1272 base = result.mPtr;
1273 }
1274 store = arrayFloat;
1275 HX_OBJ_WB_GET(this,base);
1276}
1277
1278void VirtualArray_obj::CreateEmptyArray(int inLen)
1279{

Callers

nothing calls this directly

Calls 1

DynamicClass · 0.50

Tested by

no test coverage detected