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

Function SIArray_AllOfType

src/datatypes/array.c:84–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84bool SIArray_AllOfType(SIValue siarray, SIType t) {
85 uint array_len = SIArray_Length(siarray);
86 for(uint i = 0; i < array_len; i++) {
87 SIValue elem = siarray.array[i];
88 if((SI_TYPE(elem) & t) == 0) return false;
89 }
90
91 return true;
92}
93
94// compare two SIValues, wrt ascending order
95static int _siarray_compare_func_asc

Callers 2

validate_configFunction · 0.85
validate_configFunction · 0.85

Calls 1

SIArray_LengthFunction · 0.85

Tested by

no test coverage detected