Tao.Sdl SDK Documentation

SdlNet.SDLNet_FreePacketV Method 

Free a vector of UDPpackets

[Visual Basic]
Public Shared Function SDLNet_FreePacketV( _
   ByVal packetV As IntPtr _
) As IntPtr
[C#]
public static IntPtr SDLNet_FreePacketV(
   IntPtr packetV
);

Parameters

packetV
A pointer to the UDPpacket to be freed from memory.

Return Value

nothing, this always succeeds.

Remarks

Free a UDPpacket vector from memory. Do not use this UDPpacket vector, or any UDPpacket in it, after this function is called on it.

Binds to C-function call in SDL_net.h:

            extern DECLSPEC void SDLCALL SDLNet_FreePacketV(UDPpacket **packetV)
            

Example

            // Free a UDPpacket vector
            //UDPpacket **packet;
            SDLNet_FreePacketV(packetV);
            packetV=NULL; //just to help you know that it is freed
            

See Also

SdlNet Class | Tao.Sdl Namespace | SdlNet.UDPpacket | SDLNet_AllocPacket | SDLNet_AllocPacketV | SDLNet_FreePacket | SDLNet_ResizePacket