MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / addReplyBulkCString

Function addReplyBulkCString

src/networking.cpp:1011–1020  ·  view source on GitHub ↗

Add a C null term string as bulk reply */

Source from the content-addressed store, hash-verified

1009
1010/* Add a C null term string as bulk reply */
1011void addReplyBulkCString(client *c, const char *s) {
1012 if (s == NULL) {
1013 if (c->resp < 3)
1014 addReply(c,shared.nullbulk);
1015 else
1016 addReplyNull(c);
1017 } else {
1018 addReplyBulkCBuffer(c,s,strlen(s));
1019 }
1020}
1021
1022/* Add a long long as a bulk reply */
1023void addReplyBulkLongLong(client *c, long long ll) {

Callers 15

clusterCommandFunction · 0.85
objectCommandFunction · 0.85
memoryCommandFunction · 0.85
roleCommandFunction · 0.85
replicationSendAckFunction · 0.85
xinfoReplyWithStreamInfoFunction · 0.85
xinfoCommandFunction · 0.85
addReplyCommandFunction · 0.85
mallctl_stringFunction · 0.85
debugCommandFunction · 0.85

Calls 3

addReplyFunction · 0.85
addReplyNullFunction · 0.85
addReplyBulkCBufferFunction · 0.85

Tested by

no test coverage detected