Create a string object with encoding OBJ_ENCODING_RAW, that is a plain * string object where o->ptr points to a proper sds string. */
| 75 | /* Create a string object with encoding OBJ_ENCODING_RAW, that is a plain |
| 76 | * string object where o->ptr points to a proper sds string. */ |
| 77 | robj *createRawStringObject(const char *ptr, size_t len) { |
| 78 | return createObject(OBJ_STRING, sdsnewlen(ptr,len)); |
| 79 | } |
| 80 | |
| 81 | /* Create a string object with encoding OBJ_ENCODING_EMBSTR, that is |
| 82 | * an object where the sds string is actually an unmodifiable string |
no test coverage detected