av_dynarray_add_nofree

Add an element to a dynamic array.

Function has the same functionality as av_dynarray_add(), but it doesn't free memory on fails. It returns error code instead and leave current buffer untouched.

@param tab_ptr pointer to the array to grow @param nb_ptr pointer to the number of elements in the array @param elem element to add @return >=0 on success, negative otherwise. @see av_dynarray_add(), av_dynarray2_add()

@nogc nothrow extern (C)
int
av_dynarray_add_nofree
(
void* tab_ptr
,
int* nb_ptr
,
void* elem
)

Meta