Type Definition libjxl_sys::jpegxl_alloc_func
source · [−]pub type jpegxl_alloc_func = Option<unsafe extern "C" fn(opaque: *mut c_void, size: usize) -> *mut c_void>;
Expand description
Allocating function for a memory region of a given size.
Allocates a contiguous memory region of size @p size bytes. The returned memory may not be aligned to a specific size or initialized at all.
@param opaque custom memory manager handle provided by the caller. @param size in bytes of the requested memory region. @return @c NULL if the memory can not be allocated, @return pointer to the memory otherwise.