| 179 | void putuintn(vector<uchar> &p, uint64_t val, int n) { putuintn_(p, val, n); } |
| 180 | |
| 181 | uint64_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) |
| 190 | static uchar *gzbuf = new uchar[GZMSGBUFSIZE]; // not thread-safe, but nesting is no problem |
no test coverage detected