MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / push

Method push

3rd_party/Src/ode/ode/src/array.h:99–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97 void operator = (const dArray<T> &x) { equals (x); }
98
99 void push (const T item) {
100 if (_size < _anum) _size++; else _setSize (_size+1,sizeof(T));
101 memcpy (&(((T*)_data)[_size-1]), &item, sizeof(T));
102 }
103
104 void swap (dArray<T> &x) {
105 int tmp1;

Callers 3

addMethod · 0.45
dirtyMethod · 0.45
nextMatrixMethod · 0.45

Calls

no outgoing calls

Tested by 1

nextMatrixMethod · 0.36