| 122 | |
| 123 | template<class T> |
| 124 | static 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 | } |
| 133 | void sendstring(const char *t, ucharbuf &p) { sendstring_(t, p); } |
| 134 | void sendstring(const char *t, packetbuf &p) { sendstring_(t, p); } |
| 135 | void sendstring(const char *t, vector<uchar> &p) { sendstring_(t, p); } |