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

Function getuintn

source/src/protocol.cpp:181–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179void putuintn(vector<uchar> &p, uint64_t val, int n) { putuintn_(p, val, n); }
180
181uint64_t getuintn(ucharbuf &p, int n)
182{
183 uint64_t val = 0;
184 loopi(n) val |= p.get() << (8 * i);
185 DEBUGVAR(val);
186 return val;
187}
188
189#define GZMSGBUFSIZE ((MAXGZMSGSIZE * 11) / 10)
190static uchar *gzbuf = new uchar[GZMSGBUFSIZE]; // not thread-safe, but nesting is no problem

Callers 2

parsepositionsFunction · 0.85
processFunction · 0.85

Calls 2

loopiFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected