/ext-ds/src/php/objects/ |
H A D | php_priority_queue.c | 48 ds_priority_queue_node_t *pos = nodes; in php_ds_priority_queue_serialize() local 53 for (; pos < end; ++pos) { in php_ds_priority_queue_serialize() 54 php_var_serialize(&buf, &pos->value, &serialize_data); in php_ds_priority_queue_serialize() 55 php_var_serialize(&buf, &pos->priority, &serialize_data); in php_ds_priority_queue_serialize() 75 const unsigned char *pos = buffer; in php_ds_priority_queue_unserialize() local 81 while (pos != end) { in php_ds_priority_queue_unserialize() 85 if ( ! php_var_unserialize(value, &pos, end, &unserialize_data)) { in php_ds_priority_queue_unserialize() 91 if ( ! php_var_unserialize(priority, &pos, end, &unserialize_data)) { in php_ds_priority_queue_unserialize()
|
H A D | php_queue.c | 66 const unsigned char *pos = buffer; in php_ds_queue_unserialize() local 71 while (pos != end) { in php_ds_queue_unserialize() 74 if ( ! php_var_unserialize(value, &pos, end, &unserialize_data)) { in php_ds_queue_unserialize()
|
H A D | php_deque.c | 65 const unsigned char *pos = buffer; in php_ds_deque_unserialize() local 70 while (pos != end) { in php_ds_deque_unserialize() 73 if ( ! php_var_unserialize(value, &pos, end, &unserialize_data)) { in php_ds_deque_unserialize()
|
H A D | php_stack.c | 65 const unsigned char *pos = buffer; in php_ds_stack_unserialize() local 70 while (pos != end) { in php_ds_stack_unserialize() 73 if ( ! php_var_unserialize(value, &pos, end, &unserialize_data)) { in php_ds_stack_unserialize()
|
H A D | php_vector.c | 65 const unsigned char *pos = buffer; in php_ds_vector_unserialize() local 70 while (pos != end) { in php_ds_vector_unserialize() 73 if ( ! php_var_unserialize(value, &pos, end, &unserialize_data)) { in php_ds_vector_unserialize()
|
H A D | php_set.c | 65 const unsigned char *pos = buffer; in php_ds_set_unserialize() local 71 while (pos != end) { in php_ds_set_unserialize() 74 if ( ! php_var_unserialize(value, &pos, end, &unserialize_data)) { in php_ds_set_unserialize()
|
H A D | php_pair.c | 131 const unsigned char *pos = buffer; in php_ds_pair_unserialize() local 137 if ( ! php_var_unserialize(key, &pos, max, &unserialize_data)) { in php_ds_pair_unserialize() 142 if ( ! php_var_unserialize(value, &pos, max, &unserialize_data)) { in php_ds_pair_unserialize()
|
/ext-ds/src/ds/ |
H A D | ds_priority_queue.c | 260 ds_priority_queue_node_t *pos, *end, *buf; in ds_priority_queue_to_array() local 263 pos = buf; in ds_priority_queue_to_array() 268 for (; pos < end; ++pos) { in ds_priority_queue_to_array() 269 add_next_index_zval(array, &pos->value); in ds_priority_queue_to_array() 270 Z_TRY_ADDREF_P(&pos->value); in ds_priority_queue_to_array() 279 ds_priority_queue_node_t *pos = queue->nodes; in ds_priority_queue_clear() local 282 for (; pos < end; ++pos) { in ds_priority_queue_clear() 283 DTOR_AND_UNDEF(&pos->value); in ds_priority_queue_clear() 284 DTOR_AND_UNDEF(&pos->priority); in ds_priority_queue_clear()
|
H A D | ds_vector.c | 120 if ( ! Z_ISUNDEF_P(pos)) { in ds_vector_remove() 121 zval_ptr_dtor(pos); in ds_vector_remove() 124 memmove(pos, pos + 1, sizeof(zval) * (vector->size - index)); in ds_vector_remove() 149 zval *pos = vector->buffer; in ds_vector_clear_buffer() local 152 for (; pos != end; ++pos) { in ds_vector_clear_buffer() 153 DTOR_AND_UNDEF(pos); in ds_vector_clear_buffer() 188 zval *end = pos + size; in ds_vector_to_array() 192 for (; pos != end; ++pos) { in ds_vector_to_array() 194 Z_TRY_ADDREF_P(pos); in ds_vector_to_array() 201 zval *pos = vector->buffer; in ds_vector_find_index() local [all …]
|
H A D | ds_htable.c | 771 ds_htable_bucket_t *pos = table->buckets; in ds_htable_join_keys() local 774 if ( ! DS_HTABLE_BUCKET_DELETED(pos)) { in ds_htable_join_keys() 775 smart_str_appendz(&str, &pos->key); in ds_htable_join_keys() 778 } while (++pos != end); in ds_htable_join_keys() 1215 const unsigned char *pos = buffer; in ds_htable_unserialize() local 1220 while (pos != end) { in ds_htable_unserialize() 1225 if (php_var_unserialize(key, &pos, end, &unserialize_data)) { in ds_htable_unserialize() 1231 if (php_var_unserialize(value, &pos, end, &unserialize_data)) { in ds_htable_unserialize()
|
/ext-ds/src/ |
H A D | common.c | 183 zval *pos = buffer; in ds_join_zval_buffer() local 188 smart_str_appendz(&str, pos); in ds_join_zval_buffer() 190 } while (++pos != end); in ds_join_zval_buffer() 193 smart_str_appendz(&str, pos); in ds_join_zval_buffer() 196 zval *pos = buffer; in ds_join_zval_buffer() local 201 smart_str_appendz(&str, pos); in ds_join_zval_buffer() 202 } while (++pos != end); in ds_join_zval_buffer()
|