124 * |
124 * |
125 * The data is freed and both capacity and count are reset to zero. |
125 * The data is freed and both capacity and count are reset to zero. |
126 * If the array structure itself has been dynamically allocated, it has to be |
126 * If the array structure itself has been dynamically allocated, it has to be |
127 * freed separately. |
127 * freed separately. |
128 * |
128 * |
129 * @param array the array to free |
129 * @param array the array to destroy |
130 */ |
130 */ |
131 void ucx_array_free(UcxArray *array); |
131 void ucx_array_destroy(UcxArray *array); |
132 |
132 |
133 /** |
133 /** |
134 * Inserts an element at the end of the array. |
134 * Inserts an element at the end of the array. |
135 * |
135 * |
136 * This is an O(1) operation. |
136 * This is an O(1) operation. |