MCPcopy Create free account
hub / github.com/F-Stack/f-stack / setDeferredReplyBulkSds

Function setDeferredReplyBulkSds

app/redis-6.2.6/src/networking.c:843–848  ·  view source on GitHub ↗

Set sds to a deferred reply (for symmetry with addReplyBulkSds it also frees the sds) */

Source from the content-addressed store, hash-verified

841
842/* Set sds to a deferred reply (for symmetry with addReplyBulkSds it also frees the sds) */
843void 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 */
851void addReplyBulkCString(client *c, const char *s) {

Callers 1

setDeferredReplyStreamIDFunction · 0.85

Calls 5

sdscatprintfFunction · 0.85
sdsemptyFunction · 0.85
sdslenFunction · 0.85
setDeferredReplyFunction · 0.85
sdsfreeFunction · 0.85

Tested by

no test coverage detected