[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
UDPpacket *SDLNet_AllocPacket(int size)
Create (via malloc) a new UDPpacket with a data buffer of size bytes.
The new packet should be freed using SDLNet_FreePacket when you are done using it.
Returns: a pointer to a new empty UDPpacket. NULL is returned on errors, such as out-of-memory.
|
See Also:
3.5.4 SDLNet_AllocPacketV,
3.5.2 SDLNet_ResizePacket,
3.5.3 SDLNet_FreePacket,
3.4.6 SDLNet_UDP_Send,
3.4.8 SDLNet_UDP_SendV,
4.4 UDPpacket