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

Method push

include/hx/QuickVec.h:24–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 }
23
24 inline void push(const T &inT)
25 {
26 if (mSize+1>mAlloc)
27 {
28 mAlloc = 10 + (mSize*3/2);
29 mPtr = (T *)realloc(mPtr,sizeof(T)*mAlloc);
30 }
31 mPtr[mSize]=inT;
32 mSize++;
33 }
34 void swap(QuickVec<T> &inOther)
35 {
36 std::swap(mAlloc, inOther.mAlloc);

Callers 15

__hxcpp_bytes_of_stringFunction · 0.45
splitMethod · 0.45
__GetFieldsMethod · 0.45
mapMethod · 0.45
toStringMethod · 0.45
__GetFieldsMethod · 0.45
StringFromAnonFieldsFunction · 0.45
__hxt_gc_allocFunction · 0.45
__hxt_gc_after_markFunction · 0.45
GetClassFieldsMethod · 0.45
__hxcpp_get_class_listFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected