Return the size consumed from the allocator, for the specified SDS string, * including internal fragmentation. This function is used in order to compute * the client output buffer size. */
| 43 | * including internal fragmentation. This function is used in order to compute |
| 44 | * the client output buffer size. */ |
| 45 | size_t sdsZmallocSize(sds s) { |
| 46 | void *sh = sdsAllocPtr(s); |
| 47 | return zmalloc_size(sh); |
| 48 | } |
| 49 | |
| 50 | /* Return the amount of memory used by the sds string at object->ptr |
| 51 | * for a string object. This includes internal fragmentation. */ |
no test coverage detected