sdlGetMemoryFunctions function
void
sdlGetMemoryFunctions(
- Pointer<
Pointer< mallocFunc,NativeFunction< >SdlMallocFunc> > - Pointer<
Pointer< callocFunc,NativeFunction< >SdlCallocFunc> > - Pointer<
Pointer< reallocFunc,NativeFunction< >SdlReallocFunc> > - Pointer<
Pointer< freeFunc,NativeFunction< >SdlFreeFunc> >
Get the current set of SDL memory functions
\since This function is available since SDL 2.0.7.
extern DECLSPEC void SDLCALL SDL_GetMemoryFunctions(SDL_malloc_func *malloc_func, SDL_calloc_func *calloc_func, SDL_realloc_func *realloc_func, SDL_free_func *free_func)
Implementation
void sdlGetMemoryFunctions(
Pointer<Pointer<NativeFunction<SdlMallocFunc>>> mallocFunc,
Pointer<Pointer<NativeFunction<SdlCallocFunc>>> callocFunc,
Pointer<Pointer<NativeFunction<SdlReallocFunc>>> reallocFunc,
Pointer<Pointer<NativeFunction<SdlFreeFunc>>> freeFunc) {
final sdlGetMemoryFunctionsLookupFunction = libSdl2.lookupFunction<
Void Function(
Pointer<Pointer<NativeFunction<SdlMallocFunc>>> mallocFunc,
Pointer<Pointer<NativeFunction<SdlCallocFunc>>> callocFunc,
Pointer<Pointer<NativeFunction<SdlReallocFunc>>> reallocFunc,
Pointer<Pointer<NativeFunction<SdlFreeFunc>>> freeFunc),
void Function(
Pointer<Pointer<NativeFunction<SdlMallocFunc>>> mallocFunc,
Pointer<Pointer<NativeFunction<SdlCallocFunc>>> callocFunc,
Pointer<Pointer<NativeFunction<SdlReallocFunc>>> reallocFunc,
Pointer<Pointer<NativeFunction<SdlFreeFunc>>> freeFunc)>(
'SDL_GetMemoryFunctions');
return sdlGetMemoryFunctionsLookupFunction(
mallocFunc, callocFunc, reallocFunc, freeFunc);
}