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

Function Map_New

src/datatypes/map.c:66–75  ·  view source on GitHub ↗

create a new map

Source from the content-addressed store, hash-verified

64
65// create a new map
66SIValue Map_New
67(
68 uint capacity
69) {
70 SIValue map;
71 map.map = array_new(Pair, capacity);
72 map.type = T_MAP;
73 map.allocation = M_SELF;
74 return map;
75}
76
77// clone map
78SIValue Map_Clone

Callers 7

SI_EmptyMapFunction · 0.85
SI_MapFunction · 0.85
Map_CloneFunction · 0.85
test_empty_mapFunction · 0.85
test_map_addFunction · 0.85
test_map_removeFunction · 0.85
test_map_tostringFunction · 0.85

Calls

no outgoing calls

Tested by 4

test_empty_mapFunction · 0.68
test_map_addFunction · 0.68
test_map_removeFunction · 0.68
test_map_tostringFunction · 0.68