Lines Matching refs:ds_htable_t

14 static inline ds_htable_bucket_t *ds_htable_reallocate_buckets(ds_htable_t *table, uint32_t capacit…  in ds_htable_reallocate_buckets()
29 static inline void ds_htable_reset_lookup(ds_htable_t *table) in ds_htable_reset_lookup()
34 static inline void ds_htable_realloc(ds_htable_t *table, uint32_t capacity) in ds_htable_realloc()
41 static void ds_htable_rehash(ds_htable_t *table) in ds_htable_rehash()
93 static void ds_htable_pack(ds_htable_t *table) in ds_htable_pack()
112 static inline void ds_htable_auto_truncate(ds_htable_t *table) in ds_htable_auto_truncate()
123 static ds_htable_t *ds_htable_with_capacity(uint32_t capacity) in ds_htable_with_capacity()
125 ds_htable_t *table = ecalloc(1, sizeof(ds_htable_t)); in ds_htable_with_capacity()
138 ds_htable_t *ds_htable() in ds_htable()
143 static void ds_htable_copy(ds_htable_t *_src, ds_htable_t *_dst) in ds_htable_copy()
160 ds_htable_t *ds_htable_clone(ds_htable_t *src) in ds_htable_clone()
162 ds_htable_t *dst = ecalloc(1, sizeof(ds_htable_t)); in ds_htable_clone()
340 ds_htable_t *table, in ds_htable_lookup_bucket_by_hash()
367 ds_htable_bucket_t *ds_htable_lookup_by_key(ds_htable_t *table, zval *key) in ds_htable_lookup_by_key()
372 ds_htable_bucket_t *ds_htable_lookup_by_position(ds_htable_t *table, uint32_t position) in ds_htable_lookup_by_position()
415 ds_htable_bucket_t *ds_htable_lookup_by_value(ds_htable_t *table, zval *value) in ds_htable_lookup_by_value()
429 bool ds_htable_isset(ds_htable_t *table, zval *key, bool check_empty) in ds_htable_isset()
436 zval *ds_htable_get(ds_htable_t *table, zval *key) in ds_htable_get()
443 bool ds_htable_has_key(ds_htable_t *table, zval *key) in ds_htable_has_key()
448 bool ds_htable_has_keys(ds_htable_t *table, VA_PARAMS) in ds_htable_has_keys()
459 bool ds_htable_has_value(ds_htable_t *table, zval *value) in ds_htable_has_value()
464 bool ds_htable_has_values(ds_htable_t *table, VA_PARAMS) in ds_htable_has_values()
475 static void ds_htable_clear_buffer(ds_htable_t *table) in ds_htable_clear_buffer()
493 void ds_htable_clear(ds_htable_t *table) in ds_htable_clear()
506 void ds_htable_free(ds_htable_t *table) in ds_htable_free()
515 static inline void ds_htable_sort_ex(ds_htable_t *table, compare_func_t compare_func) in ds_htable_sort_ex()
522 void ds_htable_sort(ds_htable_t *table, compare_func_t compare_func) in ds_htable_sort()
592 void ds_htable_sort_by_key(ds_htable_t *table) in ds_htable_sort_by_key()
597 void ds_htable_sort_by_value(ds_htable_t *table) in ds_htable_sort_by_value()
602 void ds_htable_sort_callback_by_key(ds_htable_t *table) in ds_htable_sort_callback_by_key()
607 void ds_htable_sort_callback_by_value(ds_htable_t *table) in ds_htable_sort_callback_by_value()
612 static inline void ds_htable_increase_capacity(ds_htable_t *table) in ds_htable_increase_capacity()
628 void ds_htable_ensure_capacity(ds_htable_t *table, uint32_t capacity) in ds_htable_ensure_capacity()
641 static void ds_htable_put_distinct_bucket(ds_htable_t *table, ds_htable_bucket_t *bucket) in ds_htable_put_distinct_bucket()
657 ds_htable_t *table, in ds_htable_init_next_bucket()
680 bool ds_htable_lookup_or_next(ds_htable_t *table, zval *key, ds_htable_bucket_t **bucket) in ds_htable_lookup_or_next()
698 void ds_htable_put(ds_htable_t *table, zval *key, zval *value) in ds_htable_put()
714 zval *ds_htable_values(ds_htable_t *table) in ds_htable_values()
728 ds_htable_bucket_t *ds_htable_last(ds_htable_t *table) in ds_htable_last()
743 ds_htable_bucket_t *ds_htable_first(ds_htable_t *table) in ds_htable_first()
758 zend_string *ds_htable_join_keys(ds_htable_t *table, const char* glue, const size_t len) in ds_htable_join_keys()
796 int ds_htable_remove(ds_htable_t *table, zval *key, zval *return_value) in ds_htable_remove()
856 ds_htable_t *ds_htable_slice(ds_htable_t *table, zend_long index, zend_long length) in ds_htable_slice()
864 ds_htable_t *slice = ds_htable_with_capacity(length); in ds_htable_slice()
932 void ds_htable_apply(ds_htable_t *table, FCI_PARAMS) in ds_htable_apply()
952 ds_htable_t *ds_htable_map(ds_htable_t *table, FCI_PARAMS) in ds_htable_map()
957 ds_htable_t *mapped = ds_htable_with_capacity(table->capacity); in ds_htable_map()
980 ds_htable_t *ds_htable_filter(ds_htable_t *table) in ds_htable_filter()
983 ds_htable_t *filtered = ds_htable_with_capacity(table->capacity); in ds_htable_filter()
999 ds_htable_t *ds_htable_filter_callback(ds_htable_t *table, FCI_PARAMS) in ds_htable_filter_callback()
1004 ds_htable_t *filtered = ds_htable_with_capacity(table->capacity); in ds_htable_filter_callback()
1030 void ds_htable_reduce(ds_htable_t *table, FCI_PARAMS, zval *initial, zval *return_value) in ds_htable_reduce()
1062 ds_htable_t *ds_htable_xor(ds_htable_t *table, ds_htable_t *other) in ds_htable_xor()
1065 ds_htable_t *xor = ds_htable(); in ds_htable_xor()
1084 ds_htable_t *ds_htable_diff(ds_htable_t *table, ds_htable_t *other) in ds_htable_diff()
1087 ds_htable_t *diff = ds_htable(); in ds_htable_diff()
1099 ds_htable_t *ds_htable_intersect(ds_htable_t *table, ds_htable_t *other) in ds_htable_intersect()
1103 ds_htable_t *intersection = ds_htable(); in ds_htable_intersect()
1115 ds_htable_t *ds_htable_merge(ds_htable_t *table, ds_htable_t *other) in ds_htable_merge()
1118 ds_htable_t *merged = ds_htable_clone(table); in ds_htable_merge()
1128 void ds_htable_reverse(ds_htable_t *table) in ds_htable_reverse()
1144 ds_htable_t *ds_htable_reversed(ds_htable_t *table) in ds_htable_reversed()
1146 ds_htable_t *reversed = ds_htable_with_capacity(table->capacity); in ds_htable_reversed()
1167 void ds_htable_to_array(ds_htable_t *table, zval *return_value) in ds_htable_to_array()
1182 int ds_htable_serialize(ds_htable_t *table, unsigned char **buffer, size_t *length, zend_serialize_… in ds_htable_serialize()
1211 int ds_htable_unserialize(ds_htable_t *table, const unsigned char *buffer, size_t length, zend_unse… in ds_htable_unserialize()