MCPcopy Create free account
hub / github.com/antirez/disque / dupStringObject

Function dupStringObject

src/object.c:143–162  ·  view source on GitHub ↗

Duplicate a string object, with the guarantee that the returned object * has the same encoding as the original one. * * This function also guarantees that duplicating a small integere object * (or a string object that contains a representation of a small integer) * will always result in a fresh object that is unshared (refcount == 1). * * The resulting object always has refcount set to 1. *

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

createRawStringObjectFunction · 0.85
createObjectFunction · 0.85
sdslenFunction · 0.70

Tested by

no test coverage detected