sdlSimdFree function

void sdlSimdFree(
  1. Pointer<NativeType> ptr
)

Deallocate memory obtained from SDL_SIMDAlloc

It is not valid to use this function on a pointer from anything but SDL_SIMDAlloc() or SDL_SIMDRealloc(). It can't be used on pointers from malloc, realloc, SDL_malloc, memalign, new[], etc.

However, SDL_SIMDFree(NULL) is a legal no-op.

The memory pointed to by ptr is no longer valid for access upon return, and may be returned to the system or reused by a future allocation. The pointer passed to this function is no longer safe to dereference once this function returns, and should be discarded.

\param ptr The pointer, returned from SDL_SIMDAlloc or SDL_SIMDRealloc, to deallocate. NULL is a legal no-op.

\since This function is available since SDL 2.0.10.

\sa SDL_SIMDAlloc \sa SDL_SIMDRealloc

extern DECLSPEC void SDLCALL SDL_SIMDFree(void *ptr)

Implementation

void sdlSimdFree(Pointer<NativeType> ptr) {
  final sdlSimdFreeLookupFunction = libSdl2.lookupFunction<
      Void Function(Pointer<NativeType> ptr),
      void Function(Pointer<NativeType> ptr)>('SDL_SIMDFree');
  return sdlSimdFreeLookupFunction(ptr);
}