pub type ZSTD_allocFunction = Option<unsafe extern "C" fn(opaque: *mut c_void, size: usize) -> *mut c_void>;
Expand description

Custom memory allocation : These prototypes make it possible to pass your own allocation/free functions. ZSTD_customMem is provided at creation time, using ZSTD_create*_advanced() variants listed below. All allocation/free operations will be completed using these custom variants instead of regular <stdlib.h> ones.