Set sds to a deferred reply (for symmetry with addReplyBulkSds it also frees the sds) */
| 1001 | |
| 1002 | /* Set sds to a deferred reply (for symmetry with addReplyBulkSds it also frees the sds) */ |
| 1003 | void setDeferredReplyBulkSds(client *c, void *node, sds s) { |
| 1004 | sds reply = sdscatprintf(sdsempty(), "$%d\r\n%s\r\n", (unsigned)sdslen(s), s); |
| 1005 | setDeferredReply(c, node, reply, sdslen(reply)); |
| 1006 | sdsfree(reply); |
| 1007 | sdsfree(s); |
| 1008 | } |
| 1009 | |
| 1010 | /* Add a C null term string as bulk reply */ |
| 1011 | void addReplyBulkCString(client *c, const char *s) { |
no test coverage detected