sdlAlignedFree function

void sdlAlignedFree(
  1. Pointer<NativeType> mem
)

Free memory allocated by SDL_aligned_alloc().

The pointer is no longer valid after this call and cannot be dereferenced anymore.

If mem is NULL, this function does nothing.

\param mem a pointer previously returned by SDL_aligned_alloc(), or NULL.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.1.3.

\sa SDL_aligned_alloc

extern SDL_DECLSPEC void SDLCALL SDL_aligned_free(void *mem)

Implementation

void sdlAlignedFree(Pointer<NativeType> mem) {
  final sdlAlignedFreeLookupFunction = libSdl3.lookupFunction<
      Void Function(Pointer<NativeType> mem),
      void Function(Pointer<NativeType> mem)>('SDL_aligned_free');
  return sdlAlignedFreeLookupFunction(mem);
}