Return the pointer of the actual SDS allocation (normally SDS strings * are referenced by the start of the string buffer). */
| 304 | /* Return the pointer of the actual SDS allocation (normally SDS strings |
| 305 | * are referenced by the start of the string buffer). */ |
| 306 | void *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 |
nothing calls this directly
no test coverage detected