Adelsbach/VSIPL
Core Light Programming Reference Guide
DD-00014-015
Core Light

6.17 vsip_dvdestroy_p - Destroy a Vector View

vsip_block_f*  vsip_vdestroy_f(vsip_vview_f* v); 
vsip_block_i*  vsip_vdestroy_i(vsip_vview_i* v); 
vsip_cblock_f* vsip_cvdestroy_f(vsip_cvview_f* v);
Description

This function destroys a vector view v and returns a pointer to the underlying data block. After calling this function, the vector view is no longer valid, but the data block can still be used.

Parameters
Return Value
Error Handling

If an error occurs, the function returns NULL.

Example

vsip_vview_f *vector_view; 
vsip_block_f *data_block; 
 
// Assuming vector_view has been properly initialized 
data_block = vsip_vdestroy_f(vector_view); 
 
if (data_block == NULL) { 
    // Handle error 
} 
 
// The data block can still be used after the vector view is destroyed