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

Function Record_New

src/execution_plan/record.c:35–49  ·  view source on GitHub ↗

this function is currently unused

Source from the content-addressed store, hash-verified

33
34// this function is currently unused
35Record Record_New
36(
37 rax *mapping
38) {
39 ASSERT(mapping);
40 // determine record size
41 uint entries_count = raxSize(mapping);
42 uint rec_size = sizeof(_Record);
43 rec_size += sizeof(Entry) * entries_count;
44
45 Record r = rm_calloc(1, rec_size);
46 r->mapping = mapping;
47
48 return r;
49}
50
51// returns the number of entries held by record
52uint Record_length

Callers 3

_PopulateReduceCtxFunction · 0.85
test_recordToStringFunction · 0.85

Calls 1

rm_callocFunction · 0.85

Tested by 1

test_recordToStringFunction · 0.68