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

Function stringObjectLen

app/redis-6.2.6/src/object.c:605–612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603}
604
605size_t stringObjectLen(robj *o) {
606 serverAssertWithInfo(NULL,o,o->type == OBJ_STRING);
607 if (sdsEncodedObject(o)) {
608 return sdslen(o->ptr);
609 } else {
610 return sdigits10((long)o->ptr);
611 }
612}
613
614int getDoubleFromObject(const robj *o, double *target) {
615 double value;

Callers 7

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

Calls 2

sdslenFunction · 0.85
sdigits10Function · 0.85

Tested by

no test coverage detected