opj_image_data_alloc

Function 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.

§Arguments

  • size - number of bytes to allocate

§Returns

a new pointer if successful, NULL otherwise.

Since 2.2.0