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

Function sdsZmallocSize

app/redis-6.2.6/src/networking.c:45–48  ·  view source on GitHub ↗

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. */

Source from the content-addressed store, hash-verified

43 * including internal fragmentation. This function is used in order to compute
44 * the client output buffer size. */
45size_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. */

Callers 9

luaCreateFunctionFunction · 0.85
objectComputeSizeFunction · 0.85
getMemoryOverheadDataFunction · 0.85
memoryCommandFunction · 0.85
catClientInfoStringFunction · 0.85
debugCommandFunction · 0.85

Calls 2

sdsAllocPtrFunction · 0.85
zmalloc_sizeFunction · 0.85

Tested by

no test coverage detected