@@ -499,18 +499,10 @@ typedef struct {
499499extern "C" {
500500#endif // __cplusplus
501501
502- /**
503- * Clone a borrowed [`vx_array`], returning an owned [`vx_array`].
504- *
505- *
506- * Must be released with [`vx_array_free`].
507- */
508- const vx_array * vx_array_clone (const vx_array * ptr );
509-
510502/**
511503 * Free an owned [`vx_array`] object.
512504 */
513- void vx_array_free (const vx_array * ptr );
505+ void vx_array_free (vx_array * ptr );
514506
515507/**
516508 * Check if array's dtype is nullable.
@@ -559,9 +551,9 @@ size_t vx_array_len(const vx_array *array);
559551 */
560552const vx_dtype * vx_array_dtype (const vx_array * array );
561553
562- const vx_array * vx_array_get_field (const vx_array * array , size_t index , vx_error * * error_out );
554+ vx_array * vx_array_get_field (const vx_array * array , size_t index , vx_error * * error_out );
563555
564- const vx_array * vx_array_slice (const vx_array * array , size_t start , size_t stop , vx_error * * error_out );
556+ vx_array * vx_array_slice (const vx_array * array , size_t start , size_t stop , vx_error * * error_out );
565557
566558/**
567559 * Check whether array's element at index is invalid (null) according to the
@@ -578,7 +570,7 @@ size_t vx_array_invalid_count(const vx_array *array, vx_error **error_out);
578570/**
579571 * Create a new array with DTYPE_NULL dtype.
580572 */
581- const vx_array * vx_array_new_null (size_t len );
573+ vx_array * vx_array_new_null (size_t len );
582574
583575/**
584576 * Create a new primitive array from an existing buffer.
@@ -597,11 +589,11 @@ const vx_array *vx_array_new_null(size_t len);
597589 * vx_array_free(array);
598590 *
599591 */
600- const vx_array * vx_array_new_primitive (vx_ptype ptype ,
601- const void * ptr ,
602- size_t len ,
603- const vx_validity * validity ,
604- vx_error * * error );
592+ vx_array * vx_array_new_primitive (vx_ptype ptype ,
593+ const void * ptr ,
594+ size_t len ,
595+ const vx_validity * validity ,
596+ vx_error * * error );
605597
606598uint8_t vx_array_get_u8 (const vx_array * array , size_t index );
607599
@@ -664,7 +656,7 @@ const vx_binary *vx_array_get_binary(const vx_array *array, uint32_t index);
664656 * This operation takes constant time as it doesn't execute the underlying
665657 * array. Executing the underlying array still takes O(n) time.
666658 */
667- const vx_array * vx_array_apply (const vx_array * array , const vx_expression * expression , vx_error * * error );
659+ vx_array * vx_array_apply (const vx_array * array , const vx_expression * expression , vx_error * * error );
668660
669661/**
670662 * Free an owned [`vx_array_iterator`] object.
@@ -679,7 +671,7 @@ void vx_array_iterator_free(vx_array_iterator *ptr);
679671 *
680672 * It is an error to call this function again after the iterator is finished.
681673 */
682- const vx_array * vx_array_iterator_next (vx_array_iterator * iter , vx_error * * error_out );
674+ vx_array * vx_array_iterator_next (vx_array_iterator * iter , vx_error * * error_out );
683675
684676/**
685677 * Clone a borrowed [`vx_binary`], returning an owned [`vx_binary`].
0 commit comments