Lines Matching refs:vector
12 ds_vector_t *vector = php_ds_vector_fetch_object(obj)->vector; local
15 ds_vector_t *vector = Z_DS_VECTOR_P(obj);
24 if (Z_TYPE_P(offset) != IS_LONG || ! ds_vector_isset(vector, Z_LVAL_P(offset), 0)) {
36 value = ds_vector_get(vector, Z_LVAL_P(offset));
50 ds_vector_t *vector = php_ds_vector_fetch_object(obj)->vector; local
53 ds_vector_t *vector = Z_DS_VECTOR_P(obj);
56 ds_vector_push(vector, value);
64 ds_vector_set(vector, Z_LVAL_P(offset), value);
72 ds_vector_t *vector = php_ds_vector_fetch_object(obj)->vector; local
75 ds_vector_t *vector = Z_DS_VECTOR_P(obj);
82 return ds_vector_isset(vector, Z_LVAL_P(offset), check_empty);
88 ds_vector_t *vector = php_ds_vector_fetch_object(obj)->vector; local
91 ds_vector_t *vector = Z_DS_VECTOR_P(obj);
105 if (ds_vector_index_exists(vector, index)) { // to avoid OutOfBounds
106 ds_vector_remove(vector, index, NULL);
113 *count = php_ds_vector_fetch_object(obj)->vector->size; return SUCCESS;
122 php_ds_vector_t *vector = php_ds_vector_fetch_object(obj); local
123 ds_vector_free(vector->vector);
124 zend_object_std_dtor(&vector->std);
130 ds_vector_t *vector = php_ds_vector_fetch_object(obj)->vector; local
133 ds_vector_t *vector = Z_DS_VECTOR_P(obj);
137 ds_vector_to_array(vector, &arr);
144 return php_ds_vector_create_clone(php_ds_vector_fetch_object(obj)->vector);
154 ds_vector_t *vector = php_ds_vector_fetch_object(obj)->vector; local
157 ds_vector_t *vector = Z_DS_VECTOR_P(obj);
159 *gc_data = vector->buffer;
160 *gc_count = (int) vector->size;