[][src]Function openjpeg2_sys::opj_image_data_alloc

pub unsafe extern "C" fn opj_image_data_alloc(size: OPJ_SIZE_T) -> *mut c_void

Allocator for opj_image_t->comps[].data To be paired with opj_image_data_free.

@param size number of bytes to allocate

@return a new pointer if successful, NULL otherwise. @since 2.2.0