sdlNetCompareAddresses function
Compare two SDLNet_Address objects.
This compares two addresses, returning a value that is useful for qsort (or SDL_qsort).
\param a first address to compare.
\param b second address to compare.
\returns -1 if a
is "less than" b
, 1 if "greater than", 0 if equal.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL_Net 3.0.0.
extern SDL_DECLSPEC int SDLCALL SDLNet_CompareAddresses(const SDLNet_Address *a, const SDLNet_Address *b)
Implementation
int sdlNetCompareAddresses(Pointer<SdlNetAddress> a, Pointer<SdlNetAddress> b) {
final sdlNetCompareAddressesLookupFunction = libSdl3Net.lookupFunction<
Int32 Function(Pointer<SdlNetAddress> a, Pointer<SdlNetAddress> b),
int Function(Pointer<SdlNetAddress> a,
Pointer<SdlNetAddress> b)>('SDLNet_CompareAddresses');
return sdlNetCompareAddressesLookupFunction(a, b);
}