Create a string object with encoding OBJ_ENCODING_RAW, that is a plain * string object where ptrFromObj(o) points to a proper sds string. */
| 90 | /* Create a string object with encoding OBJ_ENCODING_RAW, that is a plain |
| 91 | * string object where ptrFromObj(o) points to a proper sds string. */ |
| 92 | robj *createRawStringObject(const char *ptr, size_t len) { |
| 93 | return createObject(OBJ_STRING, sdsnewlen(ptr,len)); |
| 94 | } |
| 95 | |
| 96 | /* Create a string object with encoding OBJ_ENCODING_EMBSTR, that is |
| 97 | * an object where the sds string is actually an unmodifiable string |
no test coverage detected