I noticed that I could also implement f_memory_array_append() and f_memory_array_append_all() methods if I used memcpy() and a multiplication over the type size.
This:
const f_status_t status = f_memory_array_increase_by(source.used, sizeof(f_socket_t), (void **) &destination->array, &destination->used, &destination->size);
if (F_status_is_error(status)) return status;
for (f_number_unsigned_t i = 0; i < source.used; ++i) {
destination->array[destination->used++] = source.array[i];
} // for
return F_none;
Could instead become:
const f_status_t status = f_memory_array_increase_by(source.used, sizeof(f_socket_t), (void **) &destination->array, &destination->used, &destination->size);
if (F_status_is_error(status)) return status;
memcpy(destination->array, source.array, sizeof(f_socket_t) * source.used);
return F_none;
This could then be logic could then be moved into something like f_memory_array_append_all(), further simplifying the code into:
return f_memory_array_append(source.array, source.used, sizeof(f_socket_t), (void **) &destination->array, &destination->used, &destination->size);
I need to think of the function structure that I want and so I only decided to comment in this commit.
Such a change is not implemented yet but may be done at some later time.
if (!source.used) return F_data_not;
- f_status_t status = F_none;
-
- if (destination->used + 1 > destination->size) {
- status = private_f_iki_datass_resize(destination->used + F_memory_default_allocation_small_d, destination);
- if (F_status_is_error(status)) return status;
- }
+ f_status_t status = f_memory_array_increase(F_memory_default_allocation_small_d, sizeof(f_iki_datas_t), (void **) &destination->array, &destination->used, &destination->size);
+ if (F_status_is_error(status)) return status;
status = private_f_iki_datas_append_all(source, &destination->array[destination->used]);
if (F_status_is_error(status)) return status;
if (!source.used) return F_data_not;
- f_status_t status = F_none;
-
- if (destination->used + source.used > destination->size) {
- status = private_f_iki_datass_resize(destination->used + source.used, destination);
- if (F_status_is_error(status)) return status;
- }
+ f_status_t status = f_memory_array_increase_by(source.used, sizeof(f_iki_datas_t), (void **) &destination->array, &destination->used, &destination->size);
+ if (F_status_is_error(status)) return status;
for (f_number_unsigned_t i = 0; i < source.used; ++i, ++destination->used) {
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- if (datass->size > amount) return private_f_iki_datass_adjust(datass->size - amount, datass);
- return private_f_iki_datass_adjust(0, datass);
+ return private_f_iki_datass_adjust((datass->size > amount) ? datass->size - amount : 0, datass);
}
#endif // _di_f_iki_datass_decimate_by_
#endif // _di_level_0_parameter_checking_
if (!amount) return F_data_not;
- if (datass->size > amount) return private_f_iki_datass_resize(datass->size - amount, datass);
- return private_f_iki_datass_resize(0, datass);
+ return private_f_iki_datass_resize((datass->size > amount) ? datass->size - amount : 0, datass);
}
#endif // _di_f_iki_datass_decrease_by_
*
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_adjust().
+ * Errors (with error bit) from: f_memory_array_adjust().
+ * Errors (with error bit) from: f_number_unsigneds_adjust().
+ * Errors (with error bit) from: f_string_ranges_adjust().
+ *
+ * @see f_memory_array_adjust()
+ * @see f_number_unsigneds_adjust()
+ * @see f_string_ranges_adjust()
*/
#ifndef _di_f_iki_datas_adjust_
extern f_status_t f_iki_datas_adjust(const f_number_unsigned_t length, f_iki_datas_t *datas);
*
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_resize().
+ * Errors (with error bit) from: f_memory_array_increase().
+ * Errors (with error bit) from: f_number_unsigneds_append_all().
+ * Errors (with error bit) from: f_string_ranges_append_all().
+ *
+ * @see f_memory_array_increase()
+ * @see f_number_unsigneds_append_all()
+ * @see f_string_ranges_append_all()
*/
#ifndef _di_f_iki_datas_append_
extern f_status_t f_iki_datas_append(const f_iki_data_t source, f_iki_datas_t *destination);
*
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_resize().
+ * Errors (with error bit) from: f_memory_array_increase_by().
+ * Errors (with error bit) from: f_number_unsigneds_append_all().
+ * Errors (with error bit) from: f_string_ranges_append_all().
+ *
+ * @see f_memory_array_increase_by()
+ * @see f_number_unsigneds_append_all()
+ * @see f_string_ranges_append_all()
*/
#ifndef _di_f_iki_datas_append_all_
extern f_status_t f_iki_datas_append_all(const f_iki_datas_t source, f_iki_datas_t *destination);
*
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_adjust().
+ * Errors (with error bit) from: f_memory_array_adjust().
+ * Errors (with error bit) from: f_number_unsigneds_adjust().
+ * Errors (with error bit) from: f_string_ranges_adjust().
+ *
+ * @see f_memory_array_adjust()
+ * @see f_number_unsigneds_adjust()
+ * @see f_string_ranges_adjust()
*/
#ifndef _di_f_iki_datas_decimate_by_
extern f_status_t f_iki_datas_decimate_by(const f_number_unsigned_t amount, f_iki_datas_t *datas);
*
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_resize().
+ * Errors (with error bit) from: f_memory_array_resize().
+ * Errors (with error bit) from: f_number_unsigneds_resize().
+ * Errors (with error bit) from: f_string_ranges_resize().
+ *
+ * @see f_memory_array_resize()
+ * @see f_number_unsigneds_resize()
+ * @see f_string_ranges_resize()
*/
#ifndef _di_f_iki_datas_decrease_by_
extern f_status_t f_iki_datas_decrease_by(const f_number_unsigned_t amount, f_iki_datas_t *datas);
* F_array_too_large (with error bit) if the new array length is too large.
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_resize().
+ * Errors (with error bit) from: f_memory_array_resize().
+ * Errors (with error bit) from: f_number_unsigneds_resize().
+ * Errors (with error bit) from: f_string_ranges_resize().
+ *
+ * @see f_memory_array_resize()
+ * @see f_number_unsigneds_resize()
+ * @see f_string_ranges_resize()
*/
#ifndef _di_f_iki_datas_increase_
extern f_status_t f_iki_datas_increase(const f_number_unsigned_t step, f_iki_datas_t *datas);
* F_array_too_large (with error bit) if the new array length is too large.
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_resize().
+ * Errors (with error bit) from: f_memory_array_resize().
+ * Errors (with error bit) from: f_number_unsigneds_resize().
+ * Errors (with error bit) from: f_string_ranges_resize().
+ *
+ * @see f_memory_array_resize()
+ * @see f_number_unsigneds_resize()
+ * @see f_string_ranges_resize()
*/
#ifndef _di_f_iki_datas_increase_by_
extern f_status_t f_iki_datas_increase_by(const f_number_unsigned_t amount, f_iki_datas_t *datas);
*
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_resize().
+ * Errors (with error bit) from: f_memory_array_resize().
+ * Errors (with error bit) from: f_number_unsigneds_resize().
+ * Errors (with error bit) from: f_string_ranges_resize().
+ *
+ * @see f_memory_array_resize()
+ * @see f_number_unsigneds_resize()
+ * @see f_string_ranges_resize()
*/
#ifndef _di_f_iki_datas_resize_
extern f_status_t f_iki_datas_resize(const f_number_unsigned_t length, f_iki_datas_t *datas);
*
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_adjust().
- * Errors (with error bit) from: f_memory_destroy().
+ * Errors (with error bit) from: f_memory_array_adjust().
+ * Errors (with error bit) from: f_number_unsigneds_adjust().
+ * Errors (with error bit) from: f_string_ranges_adjust().
+ *
+ * @see f_memory_array_adjust()
+ * @see f_number_unsigneds_adjust()
+ * @see f_string_ranges_adjust()
*/
#ifndef _di_f_iki_datass_adjust_
extern f_status_t f_iki_datass_adjust(const f_number_unsigned_t length, f_iki_datass_t *datass);
*
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_resize().
+ * Errors (with error bit) from: f_memory_array_increase().
+ * Errors (with error bit) from: f_memory_array_resize().
+ * Errors (with error bit) from: f_number_unsigneds_resize().
+ * Errors (with error bit) from: f_string_ranges_resize().
+ *
+ * @see f_memory_array_increase()
+ * @see f_memory_array_resize()
+ * @see f_number_unsigneds_resize()
+ * @see f_string_ranges_resize()
*/
#ifndef _di_f_iki_datass_append_
extern f_status_t f_iki_datass_append(const f_iki_datas_t source, f_iki_datass_t *destination);
*
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_resize().
+ * Errors (with error bit) from: f_memory_array_increase_by().
+ * Errors (with error bit) from: f_memory_array_resize().
+ * Errors (with error bit) from: f_number_unsigneds_resize().
+ * Errors (with error bit) from: f_string_ranges_resize().
+ *
+ * @see f_memory_array_increase_by()
+ * @see f_memory_array_resize()
+ * @see f_number_unsigneds_resize()
+ * @see f_string_ranges_resize()
*/
#ifndef _di_f_iki_datass_append_all_
extern f_status_t f_iki_datass_append_all(const f_iki_datass_t source, f_iki_datass_t *destination);
*
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_adjust().
- * Errors (with error bit) from: f_memory_destroy().
+ * Errors (with error bit) from: f_memory_array_adjust().
+ * Errors (with error bit) from: f_number_unsigneds_adjust().
+ * Errors (with error bit) from: f_string_ranges_adjust().
+ *
+ * @see f_memory_array_adjust()
+ * @see f_number_unsigneds_adjust()
+ * @see f_string_ranges_adjust()
*/
#ifndef _di_f_iki_datass_decimate_by_
extern f_status_t f_iki_datass_decimate_by(const f_number_unsigned_t amount, f_iki_datass_t *datass);
*
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_delete().
- * Errors (with error bit) from: f_memory_resize().
+ * Errors (with error bit) from: f_memory_array_resize().
+ * Errors (with error bit) from: f_number_unsigneds_resize().
+ * Errors (with error bit) from: f_string_ranges_resize().
+ *
+ * @see f_memory_array_resize()
+ * @see f_number_unsigneds_resize()
+ * @see f_string_ranges_resize()
*/
#ifndef _di_f_iki_datass_decrease_by_
extern f_status_t f_iki_datass_decrease_by(const f_number_unsigned_t amount, f_iki_datass_t *datass);
* F_array_too_large (with error bit) if the new array length is too large.
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_resize().
+ * Errors (with error bit) from: f_memory_array_resize().
+ * Errors (with error bit) from: f_number_unsigneds_resize().
+ * Errors (with error bit) from: f_string_ranges_resize().
+ *
+ * @see f_memory_array_resize()
+ * @see f_number_unsigneds_resize()
+ * @see f_string_ranges_resize()
*/
#ifndef _di_f_iki_datass_increase_
extern f_status_t f_iki_datass_increase(const f_number_unsigned_t step, f_iki_datass_t *datass);
* F_array_too_large (with error bit) if the new array length is too large.
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_resize().
+ * Errors (with error bit) from: f_memory_array_resize().
+ * Errors (with error bit) from: f_number_unsigneds_resize().
+ * Errors (with error bit) from: f_string_ranges_resize().
+ *
+ * @see f_memory_array_resize()
+ * @see f_number_unsigneds_resize()
+ * @see f_string_ranges_resize()
*/
#ifndef _di_f_iki_datass_increase_by_
extern f_status_t f_iki_datass_increase_by(const f_number_unsigned_t amount, f_iki_datass_t *datass);
*
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_delete().
- * Errors (with error bit) from: f_memory_resize().
+ * Errors (with error bit) from: f_memory_array_resize().
+ * Errors (with error bit) from: f_number_unsigneds_resize().
+ * Errors (with error bit) from: f_string_ranges_resize().
+ *
+ * @see f_memory_array_resize()
+ * @see f_number_unsigneds_resize()
+ * @see f_string_ranges_resize()
*/
#ifndef _di_f_iki_datass_resize_
extern f_status_t f_iki_datass_resize(const f_number_unsigned_t length, f_iki_datass_t *datass);
#endif
#if !defined(_di_f_iki_datas_adjust_) || !defined(_di_f_iki_datas_decimate_by_)
- f_status_t private_f_iki_datas_adjust(const f_number_unsigned_t length, f_iki_datas_t *datas) {
-
- if (datas->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- if (datas->used + length > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ f_status_t private_f_iki_datas_adjust(const f_number_unsigned_t length, f_iki_datas_t *structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < datas->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = f_string_ranges_adjust(0, &datas->array[i].content);
+ status = f_string_ranges_adjust(0, &structure->array[i].content);
if (F_status_is_error(status)) return status;
- status = f_number_unsigneds_adjust(0, &datas->array[i].delimits);
+ status = f_number_unsigneds_adjust(0, &structure->array[i].delimits);
if (F_status_is_error(status)) return status;
- status = f_string_ranges_adjust(0, &datas->array[i].variable);
+ status = f_string_ranges_adjust(0, &structure->array[i].variable);
if (F_status_is_error(status)) return status;
- status = f_string_ranges_adjust(0, &datas->array[i].vocabulary);
+ status = f_string_ranges_adjust(0, &structure->array[i].vocabulary);
if (F_status_is_error(status)) return status;
} // for
- return f_memory_array_adjust(length, sizeof(f_iki_data_t), (void **) &datas->array, &datas->used, &datas->size);
+ return f_memory_array_adjust(length, sizeof(f_iki_data_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_iki_datas_adjust_) || !defined(_di_f_iki_datas_decimate_by_)
#if !defined(_di_f_iki_datas_append_) || !defined(_di_f_iki_datass_append_)
extern f_status_t private_f_iki_datas_append(const f_iki_data_t source, f_iki_datas_t *destination) {
- f_status_t status = F_none;
-
- if (destination->used + 1 > destination->size) {
- status = private_f_iki_datas_resize(destination->used + F_iki_default_allocation_small_d, destination);
- if (F_status_is_error(status)) return status;
- }
+ f_status_t status = f_memory_array_increase(F_iki_default_allocation_small_d, sizeof(f_iki_data_t), (void **) &destination->array, &destination->used, &destination->size);
+ if (F_status_is_error(status)) return status;
destination->array[destination->used].content.used = 0;
destination->array[destination->used].delimits.used = 0;
#if !defined(_di_f_iki_datas_append_) || !defined(_di_f_iki_datas_append_all_) || !defined(_di_f_iki_datass_append_all_)
extern f_status_t private_f_iki_datas_append_all(const f_iki_datas_t source, f_iki_datas_t *destination) {
- f_status_t status = F_none;
-
- if (destination->used + source.used > destination->size) {
- status = private_f_iki_datas_resize(destination->used + source.used, destination);
- if (F_status_is_error(status)) return status;
- }
+ f_status_t status = f_memory_array_increase_by(source.used, sizeof(f_iki_data_t), (void **) &destination->array, &destination->used, &destination->size);
+ if (F_status_is_error(status)) return status;
for (f_number_unsigned_t i = 0; i < source.used; ++i, ++destination->used) {
#endif // !defined(_di_f_iki_datas_append_) || !defined(_di_f_iki_datas_append_all_) || !defined(_di_f_iki_datass_append_all_)
#if !defined(_di_f_iki_datas_append_) || !defined(_di_f_iki_datas_decrease_by_) || !defined(_di_f_iki_datas_increase_) || !defined(_di_f_iki_datas_increase_by_) || !defined(_di_f_iki_datas_resize_)
- f_status_t private_f_iki_datas_resize(const f_number_unsigned_t length, f_iki_datas_t *datas) {
-
- if (datas->used >= F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
- if (datas->used + length > F_number_t_size_unsigned_d) return F_status_set_error(F_array_too_large);
+ f_status_t private_f_iki_datas_resize(const f_number_unsigned_t length, f_iki_datas_t *structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < datas->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = f_string_ranges_resize(0, &datas->array[i].content);
+ status = f_string_ranges_resize(0, &structure->array[i].content);
if (F_status_is_error(status)) return status;
- status = f_number_unsigneds_resize(0, &datas->array[i].delimits);
+ status = f_number_unsigneds_resize(0, &structure->array[i].delimits);
if (F_status_is_error(status)) return status;
- status = f_string_ranges_resize(0, &datas->array[i].variable);
+ status = f_string_ranges_resize(0, &structure->array[i].variable);
if (F_status_is_error(status)) return status;
- status = f_string_ranges_resize(0, &datas->array[i].vocabulary);
+ status = f_string_ranges_resize(0, &structure->array[i].vocabulary);
if (F_status_is_error(status)) return status;
} // for
- return f_memory_array_resize(length, sizeof(f_iki_data_t), (void **) &datas->array, &datas->used, &datas->size);
+ return f_memory_array_resize(length, sizeof(f_iki_data_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_iki_datas_append_) || !defined(_di_f_iki_datas_decrease_by_) || !defined(_di_f_iki_datas_increase_) || !defined(_di_f_iki_datas_increase_by_) || !defined(_di_f_iki_datas_resize_)
#if !defined(_di_f_iki_datass_adjust_) || !defined(_di_f_iki_datass_decimate_by_)
- f_status_t private_f_iki_datass_adjust(const f_number_unsigned_t length, f_iki_datass_t *datass) {
+ f_status_t private_f_iki_datass_adjust(const f_number_unsigned_t length, f_iki_datass_t *structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < datass->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = private_f_iki_datas_adjust(0, &datass->array[i]);
+ status = private_f_iki_datas_adjust(0, &structure->array[i]);
if (F_status_is_error(status)) return status;
} // for
- status = f_memory_adjust(datass->size, length, sizeof(f_iki_datas_t), (void **) & datass->array);
- if (F_status_is_error(status)) return status;
-
- datass->size = length;
-
- if (datass->used > datass->size) {
- datass->used = length;
- }
-
- return F_none;
+ return f_memory_array_adjust(length, sizeof(f_iki_datas_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_iki_datass_adjust_) || !defined(_di_f_iki_datass_decimate_by_)
#if !defined(_di_f_iki_datass_decrease_by_) || !defined(_di_f_iki_datass_increase_) || !defined(_di_f_iki_datass_increase_by_) || !defined(_di_f_iki_datass_resize_)
- f_status_t private_f_iki_datass_resize(const f_number_unsigned_t length, f_iki_datass_t *datass) {
+ f_status_t private_f_iki_datass_resize(const f_number_unsigned_t length, f_iki_datass_t *structure) {
f_status_t status = F_none;
- for (f_number_unsigned_t i = length; i < datass->size; ++i) {
+ for (f_number_unsigned_t i = length; i < structure->size; ++i) {
- status = f_memory_delete(datass->array[i].size, sizeof(f_iki_datas_t), (void **) & datass->array[i].array);
+ status = private_f_iki_datas_resize(0, &structure->array[i]);
if (F_status_is_error(status)) return status;
-
- datass->array[i].size = 0;
- datass->array[i].used = 0;
} // for
- status = f_memory_resize(datass->size, length, sizeof(f_iki_datas_t), (void **) & datass->array);
- if (F_status_is_error(status)) return status;
-
- datass->size = length;
-
- if (datass->used > datass->size) {
- datass->used = length;
- }
-
- return F_none;
+ return f_memory_array_resize(length, sizeof(f_iki_datas_t), (void **) &structure->array, &structure->used, &structure->size);
}
#endif // !defined(_di_f_iki_datass_decrease_by_) || !defined(_di_f_iki_datass_increase_) || !defined(_di_f_iki_datass_increase_by_) || !defined(_di_f_iki_datass_resize_)
*
* @param length
* The length to adjust to.
- * @param iki_datas
+ * @param structure
* The iki_datas array to adjust.
*
* @return
* F_none on success.
* F_data_not on success, but there is no reason to increase size (used + 1 <= size).
*
- * Errors (with error bit) from: f_memory_adjust().
+ * Errors (with error bit) from: f_memory_array_adjust().
+ * Errors (with error bit) from: f_number_unsigneds_adjust().
+ * Errors (with error bit) from: f_string_ranges_adjust().
+ *
+ * @see f_memory_array_adjust()
+ * @see f_number_unsigneds_adjust()
+ * @see f_string_ranges_adjust()
*
* @see f_iki_datas_adjust()
* @see f_iki_datas_decimate_by()
*/
#if !defined(_di_f_iki_datas_adjust_) || !defined(_di_f_iki_datas_decimate_by_)
- extern f_status_t private_f_iki_datas_adjust(const f_number_unsigned_t length, f_iki_datas_t *datas) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_iki_datas_adjust(const f_number_unsigned_t length, f_iki_datas_t *structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_iki_datas_adjust_) || !defined(_di_f_iki_datas_decimate_by_)
/**
* @param source
* The source iki_data to append.
* @param destination
- * The destination lengths the source is appended onto.
+ * The iki_datas array the source is appended onto.
*
* @return
* F_none on success.
*
- * Errors (with error bit) from: f_memory_resize().
+ * Errors (with error bit) from: f_memory_array_increase().
+ * Errors (with error bit) from: f_number_unsigneds_append_all().
+ * Errors (with error bit) from: f_string_ranges_append_all().
+ *
+ * @see f_memory_array_increase()
+ * @see f_number_unsigneds_append_all()
+ * @see f_string_ranges_append_all()
*
- * @see f_memory_resize()
* @see f_iki_datas_append()
* @see f_iki_datass_append()
*/
* @param source
* The source iki_datas to append.
* @param destination
- * The destination lengths the source is appended onto.
+ * The iki_datas array the source is appended onto.
*
* @return
* F_none on success.
*
- * Errors (with error bit) from: f_memory_resize().
+ * Errors (with error bit) from: f_memory_array_increase_by().
+ * Errors (with error bit) from: f_number_unsigneds_append_all().
+ * Errors (with error bit) from: f_string_ranges_append_all().
+ *
+ * @see f_memory_array_increase_by()
+ * @see f_number_unsigneds_append_all()
+ * @see f_string_ranges_append_all()
*
- * @see f_memory_resize()
- * @see f_iki_datas_append_all()
* @see f_iki_datass_append()
* @see f_iki_datass_append_all()
*/
*
* @param length
* The length to adjust to.
- * @param iki_datas
+ * @param structure
* The iki_datas array to adjust.
*
* @return
* F_none on success.
* F_data_not on success, but there is no reason to increase size (used + 1 <= size).
*
- * Errors (with error bit) from: f_memory_resize().
+ * Errors (with error bit) from: f_memory_array_resize().
+ * Errors (with error bit) from: f_number_unsigneds_resize().
+ * Errors (with error bit) from: f_string_ranges_resize().
+ *
+ * @see f_memory_array_resize()
+ * @see f_number_unsigneds_resize()
+ * @see f_string_ranges_resize()
*
* @see f_iki_datas_resize()
* @see f_iki_datas_append()
* @see f_iki_datass_append()
*/
#if !defined(_di_f_iki_datas_resize_) || !defined(_di_f_iki_datas_append_) || !defined(_di_f_iki_datas_decimate_by_) || !defined(_di_f_iki_datass_append_)
- extern f_status_t private_f_iki_datas_resize(const f_number_unsigned_t length, f_iki_datas_t *datas) F_attribute_visibility_internal_d;
+ extern f_status_t private_f_iki_datas_resize(const f_number_unsigned_t length, f_iki_datas_t *structure) F_attribute_visibility_internal_d;
#endif // !defined(_di_f_iki_datas_resize_) || !defined(_di_f_iki_datas_append_) || !defined(_di_f_iki_datas_decimate_by_) || !defined(_di_f_iki_datass_append_)
/**
* F_memory_not (with error bit) on out of memory.
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_adjust().
- * Errors (with error bit) from: f_memory_destroy().
+ * Errors (with error bit) from: f_memory_array_adjust().
+ * Errors (with error bit) from: f_number_unsigneds_adjust().
+ * Errors (with error bit) from: f_string_ranges_adjust().
+ *
+ * @see f_memory_array_adjust()
+ * @see f_number_unsigneds_adjust()
+ * @see f_string_ranges_adjust()
*
* @see f_iki_datass_adjust()
* @see f_iki_datass_decimate_by()
* F_memory_not (with error bit) on out of memory.
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_delete().
- * Errors (with error bit) from: f_memory_resize().
+ * Errors (with error bit) from: f_memory_array_resize().
+ * Errors (with error bit) from: f_number_unsigneds_resize().
+ * Errors (with error bit) from: f_string_ranges_resize().
+ *
+ * @see f_memory_array_resize()
+ * @see f_number_unsigneds_resize()
+ * @see f_string_ranges_resize()
*
* @see f_iki_datass_decrease_by()
* @see f_iki_datass_increase()
* @return
* F_none on success.
*
- * Errors (with error bit) from: f_memory_resize().
+ * Errors (with error bit) from: f_memory_array_increase().
+ *
+ * @see f_memory_array_increase()
*
- * @see f_memory_resize()
* @see f_limit_sets_append()
* @see f_limit_setss_append()
*/
* @return
* F_none on success.
*
- * Errors (with error bit) from: f_memory_resize().
+ * Errors (with error bit) from: f_memory_array_increase_by().
+ *
+ * @see f_memory_array_increase_by()
*
- * @see f_memory_resize()
* @see f_limit_sets_append_all()
* @see f_limit_setss_append()
* @see f_limit_setss_append_all()
* F_memory_not (with error bit) on out of memory.
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_adjust().
- * Errors (with error bit) from: f_memory_destroy().
+ * Errors (with error bit) from: f_memory_array_adjust().
+ *
+ * @see f_memory_array_adjust()
*
* @see f_limit_setss_adjust()
* @see f_limit_setss_decimate_by()
* F_memory_not (with error bit) on out of memory.
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_delete().
- * Errors (with error bit) from: f_memory_resize().
+ * Errors (with error bit) from: f_memory_array_resize().
+ *
+ * @see f_memory_array_resize()
*
* @see f_limit_setss_decrease_by()
* @see f_limit_setss_increase()
* @return
* F_none on success.
*
- * Errors (with error bit) from: f_memory_resize().
+ * Errors (with error bit) from: f_memory_array_increase().
+ *
+ * @see f_memory_array_increase()
*
- * @see f_memory_resize()
* @see f_limit_values_append()
* @see f_limit_valuess_append()
*/
* @return
* F_none on success.
*
- * Errors (with error bit) from: f_memory_resize().
+ * Errors (with error bit) from: f_memory_array_increase_by().
+ *
+ * @see f_memory_array_increase_by()
*
- * @see f_memory_resize()
* @see f_limit_values_append_all()
* @see f_limit_valuess_append()
* @see f_limit_valuess_append_all()
* F_memory_not (with error bit) on out of memory.
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_adjust().
- * Errors (with error bit) from: f_memory_destroy().
+ * Errors (with error bit) from: f_memory_array_adjust().
+ *
+ * @see f_memory_array_adjust()
*
* @see f_limit_valuess_adjust()
* @see f_limit_valuess_decimate_by()
* F_memory_not (with error bit) on out of memory.
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_delete().
- * Errors (with error bit) from: f_memory_resize().
+ * Errors (with error bit) from: f_memory_array_resize().
+ *
+ * @see f_memory_array_resize()
*
* @see f_limit_valuess_decrease_by()
* @see f_limit_valuess_increase()
*
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_array_resize().
+ * Errors (with error bit) from: f_memory_array_adjust().
*
- * @see f_memory_array_resize()
+ * @see f_memory_array_adjust()
*/
#ifndef _di_f_limit_sets_adjust_
extern f_status_t f_limit_sets_adjust(const f_number_unsigned_t length, f_limit_sets_t *sets);
*
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_array_increase_by().
- * Errors (with error bit) from: f_memory_array_resize().
+ * Errors (with error bit) from: f_memory_array_increase().
*
- * @see f_memory_array_increase_by()
- * @see f_memory_array_resize()
+ * @see f_memory_array_increase()
*/
#ifndef _di_f_limit_sets_append_
extern f_status_t f_limit_sets_append(const f_limit_set_t source, f_limit_sets_t *destination);
* F_parameter (with error bit) if a parameter is invalid.
*
* Errors (with error bit) from: f_memory_array_increase_by().
- * Errors (with error bit) from: f_memory_array_resize().
*
* @see f_memory_array_increase_by()
- * @see f_memory_array_resize()
*/
#ifndef _di_f_limit_sets_append_all_
extern f_status_t f_limit_sets_append_all(const f_limit_sets_t source, f_limit_sets_t *destination);
*
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_array_increase_by().
- * Errors (with error bit) from: f_memory_array_resize().
+ * Errors (with error bit) from: f_memory_array_increase().
*
- * @see f_memory_array_increase_by()
- * @see f_memory_array_resize()
+ * @see f_memory_array_increase()
*/
#ifndef _di_f_limit_values_append_
extern f_status_t f_limit_values_append(const f_limit_value_t source, f_limit_values_t *destination);
* F_parameter (with error bit) if a parameter is invalid.
*
* Errors (with error bit) from: f_memory_array_increase_by().
- * Errors (with error bit) from: f_memory_array_resize().
*
* @see f_memory_array_increase_by()
- * @see f_memory_array_resize()
*/
#ifndef _di_f_limit_values_append_all_
extern f_status_t f_limit_values_append_all(const f_limit_values_t source, f_limit_values_t *destination);
* @return
* F_none on success.
*
- * Errors (with error bit) from: f_memory_resize().
+ * Errors (with error bit) from: f_memory_array_increase_by().
*
- * @see f_memory_resize()
+ * @see f_memory_array_increase_by()
*
* @see f_sockets_append_all()
* @see f_socketss_append()
* F_memory_not (with error bit) on out of memory.
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_adjust().
- * Errors (with error bit) from: f_memory_destroy().
+ * Errors (with error bit) from: f_memory_array_adjust().
+ *
+ * @see f_memory_array_adjust()
*
* @see f_socketss_adjust()
* @see f_socketss_decimate_by()
* F_memory_not (with error bit) on out of memory.
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_delete().
- * Errors (with error bit) from: f_memory_resize().
+ * Errors (with error bit) from: f_memory_array_resize().
+ *
+ * @see f_memory_array_resize()
*
* @see f_socketss_decrease_by()
* @see f_socketss_increase()
*
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_array_increase_by().
- * Errors (with error bit) from: f_memory_array_resize().
+ * Errors (with error bit) from: f_memory_array_increase().
*
- * @see f_memory_array_increase_by()
- * @see f_memory_array_resize()
+ * @see f_memory_array_increase()
*/
#ifndef _di_f_sockets_append_
extern f_status_t f_sockets_append(const f_socket_t source, f_sockets_t * const destination);
* F_parameter (with error bit) if a parameter is invalid.
*
* Errors (with error bit) from: f_memory_array_increase_by().
- * Errors (with error bit) from: f_memory_array_resize().
*
* @see f_memory_array_increase_by()
- * @see f_memory_array_resize()
*/
#ifndef _di_f_sockets_append_all_
extern f_status_t f_sockets_append_all(const f_sockets_t source, f_sockets_t * const destination);
*
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors (with error bit) from: f_memory_adjust().
- * Errors (with error bit) from: f_memory_destroy().
+ * Errors (with error bit) from: f_memory_array_adjust().
+ *
+ * @see f_memory_array_adjust()
*/
#ifndef _di_f_socketss_adjust_
extern f_status_t f_socketss_adjust(const f_number_unsigned_t length, f_socketss_t * const socketss);
*
* F_parameter (with error bit) if a parameter is invalid.
*
+ * Errors (with error bit) from: f_memory_array_increase().
* Errors (with error bit) from: f_memory_array_increase_by().
- * Errors (with error bit) from: f_memory_array_resize().
*
+ * @see f_memory_array_increase()
* @see f_memory_array_increase_by()
- * @see f_memory_array_resize()
*/
#ifndef _di_f_socketss_append_
extern f_status_t f_socketss_append(const f_sockets_t source, f_socketss_t * const destination);
* F_parameter (with error bit) if a parameter is invalid.
*
* Errors (with error bit) from: f_memory_array_increase_by().
- * Errors (with error bit) from: f_memory_array_resize().
*
* @see f_memory_array_increase_by()
- * @see f_memory_array_resize()
*/
#ifndef _di_f_socketss_append_all_
extern f_status_t f_socketss_append_all(const f_socketss_t source, f_socketss_t * const destination);