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

Function isSdsRepresentableAsLongLong

src/object.cpp:449–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447}
448
449int isSdsRepresentableAsLongLong(const char *s, long long *llval) {
450 return string2ll(s,sdslen(s),llval) ? C_OK : C_ERR;
451}
452
453int isObjectRepresentableAsLongLong(robj *o, long long *llval) {
454 serverAssertWithInfo(NULL,o,o->type == OBJ_STRING);

Callers 6

rdbLoadObjectFunction · 0.85
setTypeCreateFunction · 0.85
setTypeAddFunction · 0.85
setTypeRemoveFunction · 0.85
setTypeIsMemberFunction · 0.85

Calls 2

sdslenFunction · 0.85
string2llFunction · 0.70

Tested by

no test coverage detected