MCPcopy Index your code
hub / github.com/git/git / mem_pool__ce_alloc

Function mem_pool__ce_alloc

read-cache.c:99–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97};
98
99static inline struct cache_entry *mem_pool__ce_alloc(struct mem_pool *mem_pool, size_t len)
100{
101 struct cache_entry *ce;
102 ce = mem_pool_alloc(mem_pool, cache_entry_size(len));
103 ce->mem_pool_allocated = 1;
104 return ce;
105}
106
107static inline struct cache_entry *mem_pool__ce_calloc(struct mem_pool *mem_pool, size_t len)
108{

Callers 1

create_from_diskFunction · 0.85

Calls 1

mem_pool_allocFunction · 0.85

Tested by

no test coverage detected