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

Function str_ExtendBuffer

src/util/strutil.c:137–145  ·  view source on GitHub ↗

Utility function to increase the size of a buffer.

Source from the content-addressed store, hash-verified

135
136// Utility function to increase the size of a buffer.
137void str_ExtendBuffer
138(
139 char **buf, // buffer to populate
140 size_t *bufferLen, // size of buffer
141 size_t extensionLen // number of bytes to add
142) {
143 *bufferLen += extensionLen;
144 *buf = rm_realloc(*buf, sizeof(char) * *bufferLen);
145}
146
147// Utility function to check if the string matches
148// the regex pattern.

Callers 1

Map_ToStringFunction · 0.85

Calls 1

rm_reallocFunction · 0.85

Tested by

no test coverage detected