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

Function sdsAllocPtr

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

Return the pointer of the actual SDS allocation (normally SDS strings * are referenced by the start of the string buffer). */

Source from the content-addressed store, hash-verified

339/* Return the pointer of the actual SDS allocation (normally SDS strings
340 * are referenced by the start of the string buffer). */
341void *sdsAllocPtr(sds s) {
342 return (void*) (s-sdsHdrSize(s[-1]));
343}
344
345/* Increment the sds length and decrements the left free space at the
346 * end of the string according to 'incr'. Also set the null term

Callers 2

activeDefragSdsFunction · 0.85
sdsZmallocSizeFunction · 0.85

Calls 1

sdsHdrSizeFunction · 0.85

Tested by

no test coverage detected