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

Function array_ensure_len

src/util/arr.h:123–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123static inline array_t array_ensure_len(array_t arr, size_t len) {
124 if(len <= array_len(arr)) {
125 return arr;
126 }
127 len -= array_len(arr);
128 return array_grow(arr, len);
129}
130
131/* Ensures that array_tail will always point to a valid element. */
132#define array_ensure_tail(arrpp, T) \

Callers 1

Path_EnsureLenFunction · 0.85

Calls 2

array_lenFunction · 0.85
array_growFunction · 0.85

Tested by

no test coverage detected