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

Function SIArray_New

src/datatypes/array.c:13–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include "xxhash.h"
12
13SIValue SIArray_New(uint32_t initialCapacity) {
14 SIValue siarray;
15 siarray.array = array_new(SIValue, initialCapacity);
16 siarray.type = T_ARRAY;
17 siarray.allocation = M_SELF;
18 return siarray;
19}
20
21void SIArray_Append(SIValue *siarray, SIValue value) {
22 // clone and persist incase of pointer values

Callers 13

SI_EmptyArrayFunction · 0.85
SI_ArrayFunction · 0.85
_BulkInsert_ReadPropertyFunction · 0.85
match_regex_scan_cbFunction · 0.85
AR_MATCHREGEXFunction · 0.85
AR_SPLITFunction · 0.85
GraphEntity_KeysFunction · 0.85
_EmitIndexFunction · 0.85
SIArray_CloneFunction · 0.85
SIArray_FromBinaryFunction · 0.85
Map_KeysFunction · 0.85
SIPath_RelationshipsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected