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

Function Path_EnsureLen

src/datatypes/path/path.c:18–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18void Path_EnsureLen(Path *p, size_t len) {
19 p->nodes = array_ensure_len(p->nodes, len);
20 p->edges = array_ensure_len(p->edges, len - 1);
21}
22
23void Path_AppendNode(Path *p, Node n) {
24 array_append(p->nodes, n);

Callers 1

Calls 1

array_ensure_lenFunction · 0.85

Tested by 1