sdlMemcmp function
Clear an array's memory to zero.
This is wrapper over SDL_memset that handles calculating the array size, so there's no chance of copy/paste errors, and the code is cleaner.
This requires an array, not an object, nor a pointer to an object.
\param x an array to clear.
\threadsafety It is safe to call this macro from any thread.
\since This macro is available since SDL 3.1.3.
\sa SDL_zero \sa SDL_zeroa
extern SDL_DECLSPEC int SDLCALL SDL_memcmp(const void *s1, const void *s2, size_t len)
Implementation
int sdlMemcmp(Pointer<NativeType> s1, Pointer<NativeType> s2, int len) {
final sdlMemcmpLookupFunction = libSdl3.lookupFunction<
Int32 Function(
Pointer<NativeType> s1, Pointer<NativeType> s2, Uint32 len),
int Function(Pointer<NativeType> s1, Pointer<NativeType> s2,
int len)>('SDL_memcmp');
return sdlMemcmpLookupFunction(s1, s2, len);
}