Type Alias zstd_sys::ZSTD_allocFunction

source ·
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.

Aliased Type§

enum ZSTD_allocFunction {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: usize) -> *mut c_void),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void, _: usize) -> *mut c_void)

Some value of type T.