Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/couchbase/fleece
/ calloc
Method
calloc
Fleece/Support/ConcurrentArena.cc:59–65 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
57
58
59
__hot
60
void* ConcurrentArena::calloc(size_t size) {
61
auto block = alloc(size);
62
if (_usuallyTrue(block != nullptr))
63
memset(block, 0, size);
64
return block;
65
}
66
67
68
bool ConcurrentArena::free(void *block, size_t size) {
Callers
1
allocate
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected