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

Function addReplyBulkLen

src/networking.cpp:975–979  ·  view source on GitHub ↗

Create the length prefix of a bulk reply, example: $2234 */

Source from the content-addressed store, hash-verified

973
974/* Create the length prefix of a bulk reply, example: $2234 */
975void addReplyBulkLen(client *c, robj_roptr obj) {
976 size_t len = stringObjectLen(obj);
977
978 addReplyLongLongWithPrefix(c,len,'$');
979}
980
981/* Add a Redis Object as a bulk reply */
982void addReplyBulk(client *c, robj_roptr obj) {

Callers 1

addReplyBulkFunction · 0.85

Calls 2

stringObjectLenFunction · 0.85

Tested by

no test coverage detected