ot::Heap::Array::ReserveCapacity() method
Allocates buffer to reserve a given capacity for array. If the requested @p aCapacity is smaller than the current length of the array, capacity remains unchanged.
Arguments
aCapacity
The target capacity for the array.
Return value
kErrorNone Array was successfully updated to support @p aCapacity. kErrorNoBufs Could not allocate buffer.