MCPcopy Create free account
hub / github.com/assaultcube/AC / insert

Method insert

source/src/tools.h:491–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489 }
490
491 T *insert(int i, const T *e, int n)
492 {
493 if(ulen+n>alen) growbuf(ulen+n);
494 loopj(n) add(T());
495 for(int p = ulen-1; p>=i+n; p--) buf[p] = buf[p-n];
496 loopj(n) buf[i+j] = e[j];
497 return &buf[i];
498 }
499};
500
501static inline uint hthash(const char *key)

Callers 7

loopvFunction · 0.45
showmenuFunction · 0.45
newserverFunction · 0.45
getMethod · 0.45
wizardmainFunction · 0.45
restoreeditundoFunction · 0.45
consolebufferClass · 0.45

Calls 1

loopjFunction · 0.70

Tested by

no test coverage detected