MCPcopy Create free account
hub / github.com/antirez/botlib / sdsAllocPtr

Function sdsAllocPtr

sds.c:306–308  ·  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

304/* Return the pointer of the actual SDS allocation (normally SDS strings
305 * are referenced by the start of the string buffer). */
306void *sdsAllocPtr(sds s) {
307 return (void*) (s-sdsHdrSize(s[-1]));
308}
309
310/* Increment the sds length and decrements the left free space at the
311 * end of the string according to 'incr'. Also set the null term

Callers

nothing calls this directly

Calls 1

sdsHdrSizeFunction · 0.85

Tested by

no test coverage detected