Searched refs:position (Results 1 – 19 of 19) sorted by relevance
/ext-ds/src/php/iterators/ |
H A D | php_deque_iterator.c | 18 if (iterator->position < iterator->deque->size) { in php_ds_deque_iterator_valid() 28 return ds_deque_get(iterator->deque, iterator->position); in php_ds_deque_iterator_get_current_data() 32 ZVAL_LONG(key, ((php_ds_deque_iterator_t *) iter)->position); in php_ds_deque_iterator_get_current_key() 37 ((php_ds_deque_iterator_t *) iter)->position++; in php_ds_deque_iterator_move_forward() 42 ((php_ds_deque_iterator_t *) iter)->position = 0; in php_ds_deque_iterator_rewind() 69 iterator->position = 0; in php_ds_deque_create_iterator()
|
H A D | php_vector_iterator.c | 18 return iterator->position < iterator->vector->size ? SUCCESS : FAILURE; in php_ds_vector_iterator_valid() 25 return &iterator->vector->buffer[iterator->position]; in php_ds_vector_iterator_get_current_data() 30 ZVAL_LONG(key, ((php_ds_vector_iterator_t *) iter)->position); in php_ds_vector_iterator_get_current_key() 35 ((php_ds_vector_iterator_t *) iter)->position++; in php_ds_vector_iterator_move_forward() 40 ((php_ds_vector_iterator_t *) iter)->position = 0; in php_ds_vector_iterator_rewind() 68 iterator->position = 0; in php_ds_vector_create_iterator()
|
H A D | php_queue_iterator.c | 23 ZVAL_LONG(key, ((ds_queue_iterator_t *) iter)->position); in php_ds_queue_iterator_get_current_key() 40 iterator->position++; in php_ds_queue_iterator_move_forward() 47 iterator->position = 0; in php_ds_queue_iterator_rewind() 74 iterator->position = 0; in php_ds_queue_get_iterator()
|
H A D | php_stack_iterator.c | 23 ZVAL_LONG(key, ((php_ds_stack_iterator_t *) iter)->position); in php_ds_stack_iterator_get_current_key() 40 iterator->position++; in php_ds_stack_iterator_move_forward() 47 iterator->position = 0; in php_ds_stack_iterator_rewind() 74 iterator->position = 0; in php_ds_stack_get_iterator()
|
H A D | php_priority_queue_iterator.c | 26 ZVAL_LONG(key, ((php_ds_priority_queue_iterator *) iter)->position); in php_ds_priority_queue_iterator_get_current_key() 43 iterator->position++; in php_ds_priority_queue_iterator_move_forward() 50 iterator->position = 0; in php_ds_priority_queue_iterator_rewind() 79 iterator->position = 0; in php_ds_priority_queue_get_iterator()
|
H A D | php_htable_iterator.c | 33 uint32_t position = iterator->position; in php_ds_htable_iterator_valid() local 35 return position < size ? SUCCESS : FAILURE; in php_ds_htable_iterator_valid() 100 ZVAL_LONG(key, ((ds_htable_iterator_t *) iter)->position); in php_ds_htable_iterator_get_current_pos() 107 if (++iterator->position < iterator->table->size) { in php_ds_htable_iterator_move_forward() 118 iterator->position = 0; in php_ds_htable_iterator_rewind()
|
H A D | php_vector_iterator.h | 11 zend_long position; member
|
H A D | php_deque_iterator.h | 11 zend_long position; member
|
H A D | php_priority_queue_iterator.h | 11 zend_long position; member
|
H A D | php_stack_iterator.h | 9 zend_long position; member
|
H A D | php_queue_iterator.h | 9 zend_long position; member
|
H A D | php_htable_iterator.h | 10 uint32_t position; member
|
/ext-ds/src/php/classes/ |
H A D | php_map_ce.h | 36 ARGINFO_LONG_RETURN_DS( Map_skip, position, Pair);
|
H A D | php_map_ce.c | 235 PARSE_LONG(position); in METHOD() 236 RETURN_DS_PAIR(ds_map_skip(THIS_DS_MAP(), position)); in METHOD()
|
/ext-ds/src/ds/ |
H A D | ds_map.c | 271 php_ds_pair_t *ds_map_skip(ds_map_t *map, zend_long position) in ds_map_skip() argument 273 ds_htable_bucket_t *bucket = ds_htable_lookup_by_position(map->table, position); in ds_map_skip() 276 INDEX_OUT_OF_RANGE(position, map->table->size); in ds_map_skip()
|
H A D | ds_map.h | 67 php_ds_pair_t *ds_map_skip(ds_map_t *map, zend_long position);
|
H A D | ds_deque.c | 402 void ds_deque_insert_va(ds_deque_t *deque, zend_long position, VA_PARAMS) in ds_deque_insert_va() argument 408 if (position == deque->size) { in ds_deque_insert_va() 414 if (position == 0) { in ds_deque_insert_va() 420 if ( ! ds_deque_valid_position(deque, position)) { in ds_deque_insert_va() 433 index = ds_deque_lookup_index(deque, position); in ds_deque_insert_va()
|
H A D | ds_htable.c | 372 ds_htable_bucket_t *ds_htable_lookup_by_position(ds_htable_t *table, uint32_t position) in ds_htable_lookup_by_position() argument 374 if (table->size == 0 || position >= table->size) { in ds_htable_lookup_by_position() 378 } else if (DS_HTABLE_IS_PACKED(table) || position < table->min_deleted) { in ds_htable_lookup_by_position() 379 return &table->buckets[position]; in ds_htable_lookup_by_position() 388 if (table->min_deleted <= position) { in ds_htable_lookup_by_position() 404 if (position == index) { in ds_htable_lookup_by_position()
|
H A D | ds_htable.h | 175 ds_htable_bucket_t *ds_htable_lookup_by_position(ds_htable_t *table, uint32_t position);
|
Completed in 23 milliseconds