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

Function getIntFromObjectOrReply

src/object.cpp:836–844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

834}
835
836int getIntFromObjectOrReply(client *c, robj *o, int *target, const char *msg) {
837 long value;
838
839 if (getRangeLongFromObjectOrReply(c, o, INT_MIN, INT_MAX, &value, msg) != C_OK)
840 return C_ERR;
841
842 *target = value;
843 return C_OK;
844}
845
846const char *strEncoding(int encoding) {
847 switch(encoding) {

Callers 4

selectCommandFunction · 0.85
moveCommandFunction · 0.85
copyCommandFunction · 0.85
swapdbCommandFunction · 0.85

Calls 1

Tested by

no test coverage detected