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

Function __new

include/cpp/VirtualArray.h:84–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 hx::Object *__GetRealObject() HXCPP_OVERRIDE { return base?(hx::Object *)base:(hx::Object *)this; }
83
84 inline static VirtualArray __new(int inSize=0,int inReserve=0)
85 {
86 VirtualArray result = new VirtualArray_obj(hx::arrayEmpty);
87 if (inSize>0)
88 result->__SetSizeExact(inSize);
89 if (inReserve>0)
90 result->reserve(inReserve);
91 return result;
92 }
93
94 int __Compare(const hx::Object *inRHS) const HXCPP_OVERRIDE;
95

Callers 15

joinArrayMethod · 0.85
_hx_getParametersMethod · 0.85
toStringMethod · 0.85
StringFromAnonFieldsFunction · 0.85
__int_hash_keysFunction · 0.85
__int_hash_valuesFunction · 0.85
__int64_hash_keysFunction · 0.85
__int64_hash_valuesFunction · 0.85
__string_hash_keysFunction · 0.85
__string_hash_valuesFunction · 0.85
__object_hash_keysFunction · 0.85

Calls 2

__SetSizeExactMethod · 0.45
reserveMethod · 0.45

Tested by

no test coverage detected