Lines Matching refs:buffer
17 …vector->buffer = ds_reallocate_zval_buffer(vector->buffer, capacity, vector->capacity, vector->s… in ds_vector_reallocate()
28 vector->buffer = ds_allocate_zval_buffer(capacity); in ds_vector_ex()
48 clone->buffer = ds_allocate_zval_buffer(vector->capacity); in ds_vector_clone()
52 COPY_ZVAL_BUFFER(clone->buffer, vector->buffer, vector->size); in ds_vector_clone()
57 ds_vector_t *ds_vector_from_buffer(zval *buffer, zend_long capacity, zend_long size) in ds_vector_from_buffer() argument
63 buffer = ds_reallocate_zval_buffer(buffer, DS_VECTOR_MIN_CAPACITY, capacity, size); in ds_vector_from_buffer()
67 vector->buffer = buffer; in ds_vector_from_buffer()
114 zval *pos = vector->buffer + index; in ds_vector_remove()
137 return vector->buffer + index; in ds_vector_get()
149 zval *pos = vector->buffer; in ds_vector_clear_buffer()
150 zval *end = vector->buffer + vector->size; in ds_vector_clear_buffer()
173 zval *ptr = vector->buffer + index; in ds_vector_set()
187 zval *pos = vector->buffer; in ds_vector_to_array()
201 zval *pos = vector->buffer; in ds_vector_find_index()
202 zval *end = vector->buffer + vector->size; in ds_vector_find_index()
206 return pos - vector->buffer; in ds_vector_find_index()
244 s = ds_join_zval_buffer(vector->buffer, DS_VECTOR_SIZE(vector), str, len); in ds_vector_join()
259 dst = vector->buffer + index; in ds_vector_insert_va()
283 ZVAL_COPY(&vector->buffer[vector->size++], value); in ds_vector_push()
299 dst = &vector->buffer[vector->size]; in ds_vector_push_va()
328 dst = vector->buffer; in ds_vector_unshift_va()
343 ds_user_sort_zval_buffer(vector->buffer, vector->size); in ds_vector_sort_callback()
348 ds_sort_zval_buffer(vector->buffer, vector->size); in ds_vector_sort()
357 return ds_zval_isset(vector->buffer + index, check_empty); in ds_vector_isset()
403 a = vector->buffer; // Start of buffer in ds_vector_rotate()
446 SET_AS_RETURN_AND_UNDEF(&vector->buffer[--vector->size]); in ds_vector_pop()
462 zval *first = vector->buffer; in ds_vector_shift()
483 return &vector->buffer[vector->size - 1]; in ds_vector_get_last()
498 return &vector->buffer[0]; in ds_vector_get_first()
513 ds_reverse_zval_range(vector->buffer, vector->buffer + vector->size); in ds_vector_reverse()
519 zval *buffer = ds_allocate_zval_buffer(vector->capacity); in ds_vector_reversed() local
520 zval *target = &buffer[vector->size - 1]; in ds_vector_reversed()
527 return ds_vector_from_buffer(buffer, vector->capacity, vector->size); in ds_vector_reversed()
554 zval *buffer = ds_allocate_zval_buffer(vector->capacity); in ds_vector_map() local
555 zval *target = buffer; in ds_vector_map()
565 for (; target > buffer; target--) { in ds_vector_map()
570 efree(buffer); in ds_vector_map()
579 return ds_vector_from_buffer(buffer, vector->capacity, vector->size); in ds_vector_map()
589 zval *buffer = ds_allocate_zval_buffer(vector->size); in ds_vector_filter() local
590 zval *target = buffer; in ds_vector_filter()
599 return ds_vector_from_buffer(buffer, vector->size, (target - buffer)); in ds_vector_filter()
611 zval *buffer = ds_allocate_zval_buffer(vector->size); in ds_vector_filter_callback() local
612 zval *target = buffer; in ds_vector_filter_callback()
623 for (; target > buffer; target--) { in ds_vector_filter_callback()
628 efree(buffer); in ds_vector_filter_callback()
641 return ds_vector_from_buffer(buffer, vector->size, (target - buffer)); in ds_vector_filter_callback()
688 zval *src = vector->buffer + index; in ds_vector_slice()
689 zval *end = vector->buffer + index + length; in ds_vector_slice()
715 efree(vector->buffer); in ds_vector_free()