pub unsafe extern "C" fn aws_array_list_ensure_capacity(
    list: *mut aws_array_list,
    index: usize
) -> c_int
Expand description

Ensures that the array list has enough capacity to store a value at the specified index. If there is not already enough capacity, and the list is in dynamic mode, this function will attempt to allocate more memory, expanding the list. In static mode, if ‘index’ is beyond the maximum index, AWS_ERROR_INVALID_INDEX will be raised.