MCPcopy Create free account
hub / github.com/F-Stack/f-stack / createRawStringObject

Function createRawStringObject

app/redis-6.2.6/src/object.c:77–79  ·  view source on GitHub ↗

Create a string object with encoding OBJ_ENCODING_RAW, that is a plain * string object where o->ptr points to a proper sds string. */

Source from the content-addressed store, hash-verified

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. */
77robj *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

Callers 9

queueLoadModuleFunction · 0.85
hincrbyfloatCommandFunction · 0.85
geoaddCommandFunction · 0.85
createStringObjectFunction · 0.85
dupStringObjectFunction · 0.85
dbUnshareStringValueFunction · 0.85
RM_HashSetFunction · 0.85
RM_HashGetFunction · 0.85

Calls 2

createObjectFunction · 0.85
sdsnewlenFunction · 0.85

Tested by

no test coverage detected