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

Function sdsdup

app/redis-6.2.6/src/sds.c:189–191  ·  view source on GitHub ↗

Duplicate an sds string. */

Source from the content-addressed store, hash-verified

187
188/* Duplicate an sds string. */
189sds sdsdup(const sds s) {
190 return sdsnewlen(s, sdslen(s));
191}
192
193/* Free an sds string. No operation is performed if 's' is NULL. */
194void sdsfree(sds s) {

Callers 15

sdsConfigSetFunction · 0.85
sdsConfigGetFunction · 0.85
ldbStartSessionFunction · 0.85
ldbReplParseCommandFunction · 0.85
queueSentinelConfigFunction · 0.85
sentinelConfigSetCommandFunction · 0.85
sentinelSetCommandFunction · 0.85

Calls 2

sdsnewlenFunction · 0.85
sdslenFunction · 0.85

Tested by

no test coverage detected