Lines Matching refs:n_values
69 g_return_val_if_fail (index < value_array->n_values, NULL); in g_value_array_get_nth()
76 guint n_values, in value_array_grow() argument
79 g_return_if_fail (n_values >= value_array->n_values); in value_array_grow()
81 value_array->n_values = n_values; in value_array_grow()
82 if (value_array->n_values > value_array->n_prealloced) in value_array_grow()
86 … value_array->n_prealloced = (value_array->n_values + GROUP_N_VALUES - 1) & ~(GROUP_N_VALUES - 1); in value_array_grow()
89 i = value_array->n_values; in value_array_grow()
99 if (value_array->n_prealloced >= value_array->n_values + GROUP_N_VALUES) in value_array_shrink()
101 … value_array->n_prealloced = (value_array->n_values + GROUP_N_VALUES - 1) & ~(GROUP_N_VALUES - 1); in value_array_shrink()
122 value_array->n_values = 0; in g_value_array_new()
126 value_array->n_values = 0; in g_value_array_new()
144 for (i = 0; i < value_array->n_values; i++) in g_value_array_free()
173 new_array->n_values = 0; in g_value_array_copy()
176 value_array_grow (new_array, value_array->n_values, TRUE); in g_value_array_copy()
177 for (i = 0; i < new_array->n_values; i++) in g_value_array_copy()
221 return g_value_array_insert (value_array, value_array->n_values, value); in g_value_array_append()
242 g_return_val_if_fail (index <= value_array->n_values, value_array); in g_value_array_insert()
246 i = value_array->n_values; in g_value_array_insert()
247 value_array_grow (value_array, value_array->n_values + 1, FALSE); in g_value_array_insert()
248 if (index + 1 < value_array->n_values) in g_value_array_insert()
274 g_return_val_if_fail (index < value_array->n_values, value_array); in g_value_array_remove()
278 value_array->n_values--; in g_value_array_remove()
279 if (index < value_array->n_values) in g_value_array_remove()
281 (value_array->n_values - index) * sizeof (value_array->values[0])); in g_value_array_remove()
283 if (value_array->n_prealloced > value_array->n_values) in g_value_array_remove()
284 memset (value_array->values + value_array->n_values, 0, sizeof (value_array->values[0])); in g_value_array_remove()
307 if (value_array->n_values) in g_value_array_sort()
309 value_array->n_values, in g_value_array_sort()
336 if (value_array->n_values) in g_value_array_sort_with_data()
338 value_array->n_values, in g_value_array_sort_with_data()