Lines Matching refs:ds_deque_t
9 static inline void ds_deque_increment_head(ds_deque_t *deque) in ds_deque_increment_head()
14 static inline void ds_deque_decrement_head(ds_deque_t *deque) in ds_deque_decrement_head()
19 static inline void ds_deque_increment_tail(ds_deque_t *deque) in ds_deque_increment_tail()
24 static inline void ds_deque_decrement_tail(ds_deque_t *deque) in ds_deque_decrement_tail()
30 ds_deque_t *deque, in ds_deque_memmove()
43 ds_deque_t *ds_deque() in ds_deque()
45 ds_deque_t *deque = ecalloc(1, sizeof(ds_deque_t)); in ds_deque()
56 static ds_deque_t *ds_deque_preallocated(zend_long size) in ds_deque_preallocated()
58 ds_deque_t *deque = ecalloc(1, sizeof(ds_deque_t)); in ds_deque_preallocated()
69 static ds_deque_t *ds_deque_from_buffer(zval *buffer, zend_long capacity, zend_long size) in ds_deque_from_buffer()
71 ds_deque_t *deque = ecalloc(1, sizeof(ds_deque_t)); in ds_deque_from_buffer()
82 ds_deque_t *ds_deque_clone(ds_deque_t *deque) in ds_deque_clone()
98 static inline bool ds_deque_valid_position(ds_deque_t *deque, zend_long index) in ds_deque_valid_position()
109 void ds_deque_reset_head(ds_deque_t *deque) in ds_deque_reset_head()
145 static void ds_deque_reallocate(ds_deque_t *deque, zend_long capacity) in ds_deque_reallocate()
155 static inline void ds_deque_double_capacity(ds_deque_t *deque) in ds_deque_double_capacity()
160 void ds_deque_allocate(ds_deque_t *deque, zend_long size) in ds_deque_allocate()
173 static inline void ds_deque_auto_truncate(ds_deque_t *deque) in ds_deque_auto_truncate()
183 void ds_deque_clear(ds_deque_t *deque) in ds_deque_clear()
199 void ds_deque_free(ds_deque_t *deque) in ds_deque_free()
215 static inline zend_long ds_deque_lookup_index(ds_deque_t *deque, zend_long index) in ds_deque_lookup_index()
223 static inline zval *ds_deque_lookup(ds_deque_t *deque, zend_long index) in ds_deque_lookup()
228 zval *ds_deque_get(ds_deque_t *deque, zend_long index) in ds_deque_get()
237 void ds_deque_set(ds_deque_t *deque, zend_long index, zval *value) in ds_deque_set()
246 void ds_deque_reverse(ds_deque_t *deque) in ds_deque_reverse()
270 ds_deque_t *ds_deque_reversed(ds_deque_t *deque) in ds_deque_reversed()
286 void ds_deque_shift(ds_deque_t *deque, zval *return_value) in ds_deque_shift()
295 void ds_deque_shift_throw(ds_deque_t *deque, zval *return_value) in ds_deque_shift_throw()
305 void ds_deque_pop(ds_deque_t *deque, zval *return_value) in ds_deque_pop()
314 void ds_deque_pop_throw(ds_deque_t *deque, zval *return_value) in ds_deque_pop_throw()
324 void ds_deque_remove(ds_deque_t *deque, zend_long index, zval *return_value) in ds_deque_remove()
366 void ds_deque_unshift_va(ds_deque_t *deque, VA_PARAMS) in ds_deque_unshift_va()
377 void ds_deque_push(ds_deque_t *deque, zval *value) in ds_deque_push()
388 void ds_deque_push_va(ds_deque_t *deque, VA_PARAMS) in ds_deque_push_va()
402 void ds_deque_insert_va(ds_deque_t *deque, zend_long position, VA_PARAMS) in ds_deque_insert_va()
474 static zend_long ds_deque_find_index(ds_deque_t *deque, zval *value) in ds_deque_find_index()
490 void ds_deque_join(ds_deque_t *deque, char *str, size_t len, zval *return_value) in ds_deque_join()
500 void ds_deque_find(ds_deque_t *deque, zval *value, zval *return_value) in ds_deque_find()
511 bool ds_deque_contains_va(ds_deque_t *deque, VA_PARAMS) in ds_deque_contains_va()
522 void ds_deque_rotate(ds_deque_t *deque, zend_long n) in ds_deque_rotate()
551 void ds_deque_to_array(ds_deque_t *deque, zval *array) in ds_deque_to_array()
569 bool ds_deque_index_exists(ds_deque_t *deque, zend_long index) in ds_deque_index_exists()
574 bool ds_deque_isset(ds_deque_t *deque, zend_long index, int check_empty) in ds_deque_isset()
583 zval *ds_deque_get_last(ds_deque_t *deque) in ds_deque_get_last()
588 zval *ds_deque_get_last_throw(ds_deque_t *deque) in ds_deque_get_last_throw()
598 zval *ds_deque_get_first(ds_deque_t *deque) in ds_deque_get_first()
603 zval *ds_deque_get_first_throw(ds_deque_t *deque) in ds_deque_get_first_throw()
615 ds_deque_push((ds_deque_t *) puser, iterator->funcs->get_current_data(iterator)); in iterator_add()
619 static void add_traversable_to_deque(ds_deque_t *deque, zval *obj) in add_traversable_to_deque()
624 static void add_array_to_deque(ds_deque_t *deque, HashTable *arr) in add_array_to_deque()
633 void ds_deque_push_all(ds_deque_t *deque, zval *values) in ds_deque_push_all()
652 ds_deque_t *ds_deque_merge(ds_deque_t *deque, zval *values) in ds_deque_merge()
655 ds_deque_t *merged = ds_deque_clone(deque); in ds_deque_merge()
664 void ds_deque_sort_callback(ds_deque_t *deque) in ds_deque_sort_callback()
670 void ds_deque_sort(ds_deque_t *deque) in ds_deque_sort()
676 void ds_deque_apply(ds_deque_t *deque, FCI_PARAMS) in ds_deque_apply()
697 ds_deque_t *ds_deque_map(ds_deque_t *deque, FCI_PARAMS) in ds_deque_map()
730 ds_deque_t *ds_deque_filter_callback(ds_deque_t *deque, FCI_PARAMS) in ds_deque_filter_callback()
773 ds_deque_t *ds_deque_filter(ds_deque_t *deque) in ds_deque_filter()
794 void ds_deque_reduce(ds_deque_t *deque, zval *initial, zval *return_value, FCI_PARAMS) in ds_deque_reduce()
826 ds_deque_t *ds_deque_slice(ds_deque_t *deque, zend_long index, zend_long length) in ds_deque_slice()
834 ds_deque_t *result = ds_deque_preallocated(length); in ds_deque_slice()
844 void ds_deque_sum(ds_deque_t *deque, zval *return_value) in ds_deque_sum()