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

Function sendstring_

source/src/protocol.cpp:124–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122
123template<class T>
124static inline void sendstring_(const char *text, T &p)
125{
126 DEBUGCODE(debugmute = true);
127 const char *t = text;
128 if(t) { while(*t) putint(p, *t++); }
129 putint(p, 0);
130 DEBUGCODE(debugmute = false);
131 DEBUGVAR(text);
132}
133void sendstring(const char *t, ucharbuf &p) { sendstring_(t, p); }
134void sendstring(const char *t, packetbuf &p) { sendstring_(t, p); }
135void sendstring(const char *t, vector<uchar> &p) { sendstring_(t, p); }

Callers 1

sendstringFunction · 0.85

Calls 1

putintFunction · 0.85

Tested by

no test coverage detected