Function turbojpeg_sys::tj3Alloc

source ·
pub unsafe extern "C" fn tj3Alloc(bytes: size_t) -> *mut c_void
Expand description

Allocate a byte buffer for use with TurboJPEG. You should always use this function to allocate the JPEG destination buffer(s) for the compression and transform functions unless you are disabling automatic buffer (re)allocation (by setting #TJPARAM_NOREALLOC.)

@param bytes the number of bytes to allocate

@return a pointer to a newly-allocated buffer with the specified number of bytes.

@see tj3Free()