pub unsafe extern "C" fn spa_buffer_alloc_array(
    n_buffers: u32,
    flags: u32,
    n_metas: u32,
    metas: *mut spa_meta,
    n_datas: u32,
    datas: *mut spa_data,
    data_aligns: *mut u32
) -> *mut *mut spa_buffer
Expand description

Allocate an array of buffers

Allocate \a n_buffers with the given metadata, memory and alignment information.

The buffer array, structures, data and metadata will all be allocated in one block of memory with the proper requested alignment.

\param n_buffers the number of buffers to create \param flags extra flags \param n_metas number of metadatas \param metas \a n_metas metadata specification \param n_datas number of datas \param datas \a n_datas memory specification \param data_aligns \a n_datas alignment specifications \returns an array of \a n_buffers pointers to struct \ref spa_buffer with the given metadata, data and alignment or NULL when allocation failed.