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

Function addReplyBulkLen

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

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

Source from the content-addressed store, hash-verified

813
814/* Create the length prefix of a bulk reply, example: $2234 */
815void addReplyBulkLen(client *c, robj *obj) {
816 size_t len = stringObjectLen(obj);
817
818 addReplyLongLongWithPrefix(c,len,'$');
819}
820
821/* Add a Redis Object as a bulk reply */
822void addReplyBulk(client *c, robj *obj) {

Callers 1

addReplyBulkFunction · 0.85

Calls 2

stringObjectLenFunction · 0.85

Tested by

no test coverage detected