Type Definition steam_audio::ffi::IPLAllocateFunction [] [src]

type IPLAllocateFunction = Option<unsafe extern "C" fn(_: IPLsize, _: IPLsize) -> *mut IPLvoid>;

Prototype of a callback that allocates memory. This is usually specified to let Phonon 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.