Type Definition jpegxl_sys::jpegxl_alloc_func [−][src]
type jpegxl_alloc_func = Option<unsafe extern "C" fn(opaque: *mut c_void, size: size_t) -> *mut c_void>;
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. @returns @c 0 if the memory can not be allocated, @returns pointer to the memory otherwise.