sdlNetFreeLocalAddresses function
Free the results from SDLNet_GetLocalAddresses.
This will unref all addresses in the array and free the array itself.
Since addresses are reference counted, it is safe to keep any addresses you want from this array even after calling this function, as long as you called SDLNet_RefAddress() on them first.
It is safe to pass a NULL in here, it will be ignored.
\param addresses A pointer returned by SDLNet_GetLocalAddresses().
\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 void SDLCALL SDLNet_FreeLocalAddresses(SDLNet_Address **addresses)
Implementation
void sdlNetFreeLocalAddresses(Pointer<Pointer<SdlNetAddress>> addresses) {
final sdlNetFreeLocalAddressesLookupFunction = libSdl3Net.lookupFunction<
Void Function(Pointer<Pointer<SdlNetAddress>> addresses),
void Function(Pointer<Pointer<SdlNetAddress>> addresses)>(
'SDLNet_FreeLocalAddresses');
return sdlNetFreeLocalAddressesLookupFunction(addresses);
}