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

Function SI_ShallowCloneValue

src/value.c:174–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174SIValue SI_ShallowCloneValue(const SIValue v) {
175 if(v.allocation == M_CONST || v.allocation == M_NONE) return v;
176 return SI_CloneValue(v);
177}
178
179/* Make an SIValue that shares the original's allocations but can safely expect those allocations
180 * to remain in scope. This is most frequently the case for GraphEntity properties. */

Callers 1

_AR_EXP_CloneOperandFunction · 0.85

Calls 1

SI_CloneValueFunction · 0.85

Tested by

no test coverage detected