MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / zmalloc_usable_size

Function zmalloc_usable_size

src/zmalloc.cpp:290–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288 return size+PREFIX_SIZE;
289}
290size_t zmalloc_usable_size(void *ptr) {
291 return zmalloc_size(ptr)-PREFIX_SIZE;
292}
293#endif
294
295void zfree(const void *ptr) {

Callers 9

replicationBufferMethod · 0.85
addDataMethod · 0.85
_addReplyToBufferFunction · 0.85
_addReplyProtoToListFunction · 0.85
trimReplyUnusedTailSpaceFunction · 0.85
setDeferredReplyFunction · 0.85
setDeferredAggregateLenFunction · 0.85
insertMethod · 0.85

Calls 1

zmalloc_sizeFunction · 0.85

Tested by

no test coverage detected