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

Function SIArray_Get

src/datatypes/array.c:28–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28SIValue SIArray_Get(SIValue siarray, uint32_t index) {
29 // check index
30 if(index >= SIArray_Length(siarray)) return SI_NullVal();
31 return SI_ShareValue(siarray.array[index]);
32}
33
34uint32_t SIArray_Length(SIValue siarray) {
35 return array_len(siarray.array);

Callers 15

SIValue_ConcatListFunction · 0.85
SIArray_CompareFunction · 0.85
_FilterTreeToInQueryNodeFunction · 0.85
_RdbSaveSIArrayFunction · 0.85
AR_JOINFunction · 0.85
AR_ANYFunction · 0.85
AR_ALLFunction · 0.85
AR_SINGLEFunction · 0.85
AR_NONEFunction · 0.85
AR_LIST_COMPREHENSIONFunction · 0.85
_AR_TOTYPELISTFunction · 0.85

Calls 3

SIArray_LengthFunction · 0.85
SI_NullValFunction · 0.85
SI_ShareValueFunction · 0.85

Tested by 1

test_map_addFunction · 0.68