/ext-ds/src/php/iterators/ |
H A D | php_priority_queue_iterator.c | 11 DTOR_AND_UNDEF(&iterator->intern.data); in php_ds_priority_queue_iterator_dtor() 17 return Z_ISUNDEF(iter->data) ? FAILURE : SUCCESS; in php_ds_priority_queue_iterator_valid() 22 return &iter->data; in php_ds_priority_queue_iterator_get_current_data() 29 static void php_ds_priority_queue_iterator_set_current(ds_priority_queue_t *queue, zval *data) in php_ds_priority_queue_iterator_set_current() argument 32 ZVAL_UNDEF(data); in php_ds_priority_queue_iterator_set_current() 34 ds_priority_queue_pop(queue, data); in php_ds_priority_queue_iterator_set_current() 35 Z_TRY_DELREF_P(data); in php_ds_priority_queue_iterator_set_current() 42 php_ds_priority_queue_iterator_set_current(iterator->queue, &iter->data); in php_ds_priority_queue_iterator_move_forward() 49 php_ds_priority_queue_iterator_set_current(iterator->queue, &iter->data); in php_ds_priority_queue_iterator_rewind() 74 ZVAL_UNDEF(&iterator->intern.data); in php_ds_priority_queue_get_iterator()
|
H A D | php_queue_iterator.c | 14 return Z_ISUNDEF(iter->data) ? FAILURE : SUCCESS; in php_ds_queue_iterator_valid() 19 return &iter->data; in php_ds_queue_iterator_get_current_data() 26 static void php_ds_queue_iterator_set_current(ds_queue_t *queue, zval *data) in php_ds_queue_iterator_set_current() argument 29 ZVAL_UNDEF(data); in php_ds_queue_iterator_set_current() 31 ds_queue_pop(queue, data); in php_ds_queue_iterator_set_current() 32 Z_TRY_DELREF_P(data); in php_ds_queue_iterator_set_current() 39 php_ds_queue_iterator_set_current(iterator->queue, &iter->data); in php_ds_queue_iterator_move_forward() 46 php_ds_queue_iterator_set_current(iterator->queue, &iter->data); in php_ds_queue_iterator_rewind()
|
H A D | php_stack_iterator.c | 14 return Z_ISUNDEF(iter->data) ? FAILURE : SUCCESS; in php_ds_stack_iterator_valid() 19 return &iter->data; in php_ds_stack_iterator_get_current_data() 26 static void php_ds_stack_iterator_set_current(ds_stack_t *stack, zval *data) in php_ds_stack_iterator_set_current() argument 29 ZVAL_UNDEF(data); in php_ds_stack_iterator_set_current() 31 ds_stack_pop(stack, data); in php_ds_stack_iterator_set_current() 32 Z_TRY_DELREF_P(data); in php_ds_stack_iterator_set_current() 39 php_ds_stack_iterator_set_current(iterator->stack, &iter->data); in php_ds_stack_iterator_move_forward() 46 php_ds_stack_iterator_set_current(iterator->stack, &iter->data); in php_ds_stack_iterator_rewind()
|
H A D | php_htable_iterator.c | 26 DTOR_AND_UNDEF(&iterator->intern.data); in php_ds_htable_iterator_dtor() 82 zval *arr = &iterator->intern.data; in php_ds_htable_iterator_get_current_pair() 176 ZVAL_UNDEF(&iterator->intern.data); in php_ds_htable_create_htable_iterator()
|
/ext-ds/src/php/objects/ |
H A D | php_queue.c | 31 …ds_queue_serialize(zval *object, unsigned char **buffer, size_t *length, zend_serialize_data *data) in php_ds_queue_serialize() argument 35 php_serialize_data_t serialize_data = (php_serialize_data_t) data; in php_ds_queue_serialize() 60 …ect, zend_class_entry *ce, const unsigned char *buffer, size_t length, zend_unserialize_data *data) in php_ds_queue_unserialize() argument 64 php_unserialize_data_t unserialize_data = (php_unserialize_data_t) data; in php_ds_queue_unserialize()
|
H A D | php_deque.c | 30 …ds_deque_serialize(zval *object, unsigned char **buffer, size_t *length, zend_serialize_data *data) in php_ds_deque_serialize() argument 34 php_serialize_data_t serialize_data = (php_serialize_data_t) data; in php_ds_deque_serialize() 59 …ect, zend_class_entry *ce, const unsigned char *buffer, size_t length, zend_unserialize_data *data) in php_ds_deque_unserialize() argument 63 php_unserialize_data_t unserialize_data = (php_unserialize_data_t) data; in php_ds_deque_unserialize()
|
H A D | php_stack.c | 30 …ds_stack_serialize(zval *object, unsigned char **buffer, size_t *length, zend_serialize_data *data) in php_ds_stack_serialize() argument 34 php_serialize_data_t serialize_data = (php_serialize_data_t) data; in php_ds_stack_serialize() 59 …ect, zend_class_entry *ce, const unsigned char *buffer, size_t length, zend_unserialize_data *data) in php_ds_stack_unserialize() argument 63 php_unserialize_data_t unserialize_data = (php_unserialize_data_t) data; in php_ds_stack_unserialize()
|
H A D | php_vector.c | 31 …s_vector_serialize(zval *object, unsigned char **buffer, size_t *length, zend_serialize_data *data) in php_ds_vector_serialize() argument 35 php_serialize_data_t serialize_data = (php_serialize_data_t) data; in php_ds_vector_serialize() 59 …obj, zend_class_entry *ce, const unsigned char *buffer, size_t length, zend_unserialize_data *data) in php_ds_vector_unserialize() argument 63 php_unserialize_data_t unserialize_data = (php_unserialize_data_t) data; in php_ds_vector_unserialize()
|
H A D | php_set.c | 30 …p_ds_set_serialize(zval *object, unsigned char **buffer, size_t *length, zend_serialize_data *data) in php_ds_set_serialize() argument 34 php_serialize_data_t serialize_data = (php_serialize_data_t) data; in php_ds_set_serialize() 59 …ect, zend_class_entry *ce, const unsigned char *buffer, size_t length, zend_unserialize_data *data) in php_ds_set_unserialize() argument 63 php_unserialize_data_t unserialize_data = (php_unserialize_data_t) data; in php_ds_set_unserialize()
|
H A D | php_map.c | 67 …p_ds_map_serialize(zval *object, unsigned char **buffer, size_t *length, zend_serialize_data *data) in php_ds_map_serialize() argument 69 return ds_htable_serialize(Z_DS_MAP_P(object)->table, buffer, length, data); in php_ds_map_serialize() 72 …ect, zend_class_entry *ce, const unsigned char *buffer, size_t length, zend_unserialize_data *data) in php_ds_map_unserialize() argument 76 if (ds_htable_unserialize(map->table, buffer, length, data) == FAILURE) { in php_ds_map_unserialize()
|
H A D | php_priority_queue.c | 36 …ty_queue_serialize(zval *object, unsigned char **buffer, size_t *length, zend_serialize_data *data) in php_ds_priority_queue_serialize() argument 40 php_serialize_data_t serialize_data = (php_serialize_data_t) data; in php_ds_priority_queue_serialize() 69 …ect, zend_class_entry *ce, const unsigned char *buffer, size_t length, zend_unserialize_data *data) in php_ds_priority_queue_unserialize() argument 73 php_unserialize_data_t unserialize_data = (php_unserialize_data_t) data; in php_ds_priority_queue_unserialize()
|
H A D | php_pair.c | 102 …_ds_pair_serialize(zval *object, unsigned char **buffer, size_t *length, zend_serialize_data *data) in php_ds_pair_serialize() argument 109 php_serialize_data_t serialize_data = (php_serialize_data_t) data; in php_ds_pair_serialize() 126 …ect, zend_class_entry *ce, const unsigned char *buffer, size_t length, zend_unserialize_data *data) in php_ds_pair_unserialize() argument 129 php_unserialize_data_t unserialize_data = (php_unserialize_data_t) data; in php_ds_pair_unserialize()
|
/ext-ds/src/ds/ |
H A D | ds_queue.h | 44 …s_queue_serialize(zval *object, unsigned char **buffer, size_t *length, zend_serialize_data *data); 45 …ct, zend_class_entry *ce, const unsigned char *buffer, size_t length, zend_unserialize_data *data);
|
H A D | ds_htable.h | 213 …_serialize(ds_htable_t *table, unsigned char **buffer, size_t *buf_len, zend_serialize_data *data); 214 …alize(ds_htable_t *table, const unsigned char *buffer, size_t length, zend_unserialize_data *data);
|
H A D | ds_htable.c | 1182 …le_serialize(ds_htable_t *table, unsigned char **buffer, size_t *length, zend_serialize_data *data) in ds_htable_serialize() argument 1184 php_serialize_data_t serialize_data = (php_serialize_data_t) data; in ds_htable_serialize() 1211 …ialize(ds_htable_t *table, const unsigned char *buffer, size_t length, zend_unserialize_data *data) in ds_htable_unserialize() argument 1213 php_unserialize_data_t unserialize_data = (php_unserialize_data_t) data; in ds_htable_unserialize()
|
/ext-ds/src/ |
H A D | common.h | 163 zend_serialize_data *data \ 170 zend_unserialize_data *data \
|
/ext-ds/ |
H A D | config.w32 | 17 ARG_ENABLE("ds", "for extended data structure support", "no");
|
H A D | README.md | 7 A PHP language extension that provides specialized data structures as efficient alternatives to the…
|