Function openjpeg_sys::opj_image_data_alloc
source · pub unsafe extern "C" fn opj_image_data_alloc(
size: OPJ_SIZE_T,
) -> *mut c_void
Expand description
Allocator for opj_image_t->comps[].data
To be paired with opj_image_data_free
.
size
— number of bytes to allocate
@return a new pointer if successful, NULL otherwise. @since 2.2.0