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

Function stringObjectLen

src/object.cpp:647–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645}
646
647size_t stringObjectLen(robj_roptr o) {
648 serverAssertWithInfo(NULL,o,o->type == OBJ_STRING);
649 if (sdsEncodedObject(o)) {
650 return sdslen(szFromObj(o));
651 } else {
652 return sdigits10((long)ptrFromObj(o));
653 }
654}
655
656int getDoubleFromObject(const robj *o, double *target) {
657 double value;

Callers 7

RM_ValueLengthFunction · 0.85
setrangeCommandFunction · 0.85
appendCommandFunction · 0.85
strlenCommandFunction · 0.85
addReplyBulkLenFunction · 0.85
isHLLObjectOrReplyFunction · 0.85

Calls 4

sdslenFunction · 0.85
szFromObjFunction · 0.85
sdigits10Function · 0.85
ptrFromObjFunction · 0.85

Tested by

no test coverage detected