Return the pointer of the actual SDS allocation (normally SDS strings * are referenced by the start of the string buffer). */
| 339 | /* Return the pointer of the actual SDS allocation (normally SDS strings |
| 340 | * are referenced by the start of the string buffer). */ |
| 341 | void *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 |
no test coverage detected