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

Function Add

include/cpp/VirtualArray.h:423–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421
422 template<typename T>
423 inline VirtualArray_obj *Add(const T &inVal)
424 {
425 if (store!=hx::arrayFixed) EnsureStorage(inVal);
426 base->__push(Dynamic(inVal));
427 return this;
428 }
429
430 inline Dynamic pop() { checkBase(); return store==hx::arrayEmpty ? null() : base->__pop(); }
431

Callers

nothing calls this directly

Calls 2

EnsureStorageFunction · 0.85
DynamicClass · 0.50

Tested by

no test coverage detected