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

Method __Remove

src/hx/Anon.cpp:238–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238bool Anon_obj::__Remove(String inKey)
239{
240 int slot = findFixed(inKey);
241 if (slot>=0)
242 {
243 VariantKey *fixed = getFixed();
244 while(slot<mFixedFields)
245 {
246 fixed[slot] = fixed[slot+1];
247 slot++;
248 }
249 mFixedFields--;
250 return true;
251 }
252
253 if (!mFields.mPtr)
254 return false;
255 return __string_hash_remove(mFields,inKey);
256}
257
258
259hx::Val Anon_obj::__SetField(const String &inName,const hx::Val &inValue, hx::PropertyAccess inCallProp)

Callers 1

__hxcpp_anon_removeFunction · 0.80

Calls 2

getFixedFunction · 0.85
__string_hash_removeFunction · 0.85

Tested by

no test coverage detected