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

Function createRawStringObject

src/object.cpp:92–94  ·  view source on GitHub ↗

Create a string object with encoding OBJ_ENCODING_RAW, that is a plain * string object where ptrFromObj(o) points to a proper sds string. */

Source from the content-addressed store, hash-verified

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

Callers 9

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

Calls 2

createObjectFunction · 0.85
sdsnewlenFunction · 0.85

Tested by

no test coverage detected