| 180 | ///////////////////////////////////////////////////////////////////////////// |
| 181 | |
| 182 | void redis_client::put_data(dbuf_pool* dbuf, redis_result* rr, |
| 183 | const char* data, size_t len) |
| 184 | { |
| 185 | char* buf = (char*) dbuf->dbuf_alloc(len + 1); |
| 186 | if (len > 0) |
| 187 | memcpy(buf, data, len); |
| 188 | buf[len] = 0; |
| 189 | rr->put(buf, len); |
| 190 | } |
| 191 | |
| 192 | redis_result* redis_client::get_error(socket_stream& conn, dbuf_pool* dbuf) |
| 193 | { |
nothing calls this directly
no test coverage detected