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

Function array_grow

src/util/arr.h:118–121  ·  view source on GitHub ↗

Ensure capacity for the array to grow by one */

Source from the content-addressed store, hash-verified

116
117/* Ensure capacity for the array to grow by one */
118static inline array_t array_grow(array_t arr, size_t n) {
119 array_hdr(arr)->len += n;
120 return array_ensure_cap(arr, array_hdr(arr)->len);
121}
122
123static inline array_t array_ensure_len(array_t arr, size_t len) {
124 if(len <= array_len(arr)) {

Callers 1

array_ensure_lenFunction · 0.85

Calls 1

array_ensure_capFunction · 0.85

Tested by

no test coverage detected