MCPcopy Create free account
hub / github.com/Shannon-Data/ShannonBase / reserve

Method reserve

include/prealloced_array.h:286–311  ·  view source on GitHub ↗

Reserves space for array elements. Copies (or moves, if possible) over existing elements, in case we are re-expanding the array. @param n number of elements. @retval true if out-of-memory, false otherwise. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

Prealloced_arrayMethod · 0.95
Prealloced_arrayClass · 0.95

Calls 6

capacityFunction · 0.50
my_mallocFunction · 0.50
sizeClass · 0.50
bufferFunction · 0.50
moveFunction · 0.50
my_freeFunction · 0.50

Tested by

no test coverage detected