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

Method __SetItem

src/Array.cpp:1034–1048  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1032}
1033
1034Dynamic VirtualArray_obj::__SetItem(int inIndex,Dynamic inValue)
1035{
1036 checkBase();
1037
1038 if (store!=hx::arrayFixed)
1039 {
1040 if (inIndex>(store==hx::arrayEmpty ? 0 : (int)base->length) )
1041 EnsureObjectStorage();
1042 else
1043 EnsureStorage(inValue);
1044 }
1045
1046 base->__SetItem(inIndex,inValue);
1047 return inValue;
1048}
1049
1050hx::Val VirtualArray_obj::__Field(const String &inString, hx::PropertyAccess inCallProp)
1051{

Callers 3

operator=Method · 0.45
operator++Method · 0.45
operator--Method · 0.45

Calls 3

checkBaseFunction · 0.85
EnsureObjectStorageFunction · 0.85
EnsureStorageFunction · 0.85

Tested by

no test coverage detected