pub type JpegxlAllocFunc = unsafe extern "C-unwind" 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 size bytes. The returned
memory may not be aligned to a specific size or initialized at all.
§Parameters
opaque: custom memory manager handle provided by the caller.size: size in bytes of the requested memory region.
§Returns
NULLif the memory cannot be allocated.- Pointer to the memory otherwise.