| 68 | } |
| 69 | |
| 70 | static void FlushComponent(std::string* out, std::string* compbuf, int* ncomp) { |
| 71 | AppendHeader(*out, '$', compbuf->size()); |
| 72 | out->append(*compbuf); |
| 73 | out->append("\r\n", 2); |
| 74 | compbuf->clear(); |
| 75 | ++*ncomp; |
| 76 | } |
| 77 | |
| 78 | // Support hiredis-style format, namely everything is same with printf except |
| 79 | // that %b corresponds to binary-data + length. Notice that we can't use |
no test coverage detected