Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
}
290
size_t zmalloc_usable_size(void *ptr) {
291
return zmalloc_size(ptr)-PREFIX_SIZE;
292
}
293
#endif
294
295
void zfree(const void *ptr) {
Callers
9
replicationBuffer
Method · 0.85
addData
Method · 0.85
_clientAsyncReplyBufferReserve
Function · 0.85
_addReplyToBuffer
Function · 0.85
_addReplyProtoToList
Function · 0.85
trimReplyUnusedTailSpace
Function · 0.85
setDeferredReply
Function · 0.85
setDeferredAggregateLen
Function · 0.85
insert
Method · 0.85
Calls
1
zmalloc_size
Function · 0.85
Tested by
no test coverage detected