MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / CacheObj_Dup

Function CacheObj_Dup

tests/unit/test_cache.c:30–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30CacheObj *CacheObj_Dup(const CacheObj *obj) {
31 CacheObj *dup = (CacheObj *)rm_malloc(sizeof(CacheObj));
32 memcpy(dup, obj, sizeof(CacheObj));
33 return dup;
34}
35
36bool CacheObj_EQ(const CacheObj *a, const CacheObj *b) {
37 if(a == b) return true;

Callers

nothing calls this directly

Calls 1

rm_mallocFunction · 0.85

Tested by

no test coverage detected