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

Function putuintn_

source/src/protocol.cpp:172–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170
171template<class T>
172static inline void putuintn_(T &p, uint64_t val, int n)
173{
174 DEBUGVAR(val);
175 loopi(n) p.put(val >> (8 * i));
176}
177void putuintn(ucharbuf &p, uint64_t val, int n) { putuintn_(p, val, n); }
178void putuintn(packetbuf &p, uint64_t val, int n) { putuintn_(p, val, n); }
179void putuintn(vector<uchar> &p, uint64_t val, int n) { putuintn_(p, val, n); }

Callers 1

putuintnFunction · 0.85

Calls 2

loopiFunction · 0.70
putMethod · 0.45

Tested by

no test coverage detected