| 645 | } |
| 646 | |
| 647 | size_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 | |
| 656 | int getDoubleFromObject(const robj *o, double *target) { |
| 657 | double value; |
no test coverage detected