IPLAllocateFunction

Type Alias IPLAllocateFunction 

Source
pub type IPLAllocateFunction = Option<unsafe extern "C" fn(size: IPLsize, alignment: IPLsize) -> *mut c_void>;
Expand description

Prototype of a callback that allocates memory. This is usually specified to let Steam Audio use a custom memory allocator. The default behavior is to use the OS-dependent aligned version of \c malloc.

\param size The number of bytes to allocate. \param alignment The alignment (in bytes) of the start address of the allocated memory.

\return Pointer to the allocated block of memory, or \c NULL if allocation failed.

Aliased Type§

pub enum IPLAllocateFunction {
    None,
    Some(unsafe extern "C" fn(usize, usize) -> *mut c_void),
}

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.