Set sds to a deferred reply (for symmetry with addReplyBulkSds it also frees the sds) */
| 841 | |
| 842 | /* Set sds to a deferred reply (for symmetry with addReplyBulkSds it also frees the sds) */ |
| 843 | void setDeferredReplyBulkSds(client *c, void *node, sds s) { |
| 844 | sds reply = sdscatprintf(sdsempty(), "$%d\r\n%s\r\n", (unsigned)sdslen(s), s); |
| 845 | setDeferredReply(c, node, reply, sdslen(reply)); |
| 846 | sdsfree(reply); |
| 847 | sdsfree(s); |
| 848 | } |
| 849 | |
| 850 | /* Add a C null term string as bulk reply */ |
| 851 | void addReplyBulkCString(client *c, const char *s) { |
no test coverage detected