MCPcopy Create free account
hub / github.com/anjo76/angelscript / push_back

Method push_back

sdk/tests/test_feature/source/test_arrayobject.cpp:48–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46
47 int size() {return length;}
48 void push_back(int &v)
49 {
50 int *b = new int[length+1];
51 memcpy(b, buffer, length*4);
52 delete[] buffer;
53 buffer = b;
54 b[length++] = v;
55 }
56 int pop_back()
57 {
58 return buffer[--length];

Callers 15

SpawnObjectMethod · 0.45
GetControllerScriptMethod · 0.45
ReturnContextToPoolMethod · 0.45
ReturnContextCallbackFunction · 0.45
AddFuncBreakPointMethod · 0.45
AddFileBreakPointMethod · 0.45
StoreMethod · 0.45
AddExtraObjectToStoreMethod · 0.45
ReplaceHandlesMethod · 0.45
ExecuteScriptsMethod · 0.45
AbortAllMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected