[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
int SDLNet_ResizePacket(UDPpacket *packet, int size)
Resize a UDPpackets data buffer to size bytes. The old data buffer will not be retained, so the new buffer is invalid after this call.
Returns: the new size of the data in the packet. If the number returned is less than what you asked for, that's an error.
|
See Also:
3.5.1 SDLNet_AllocPacket,
3.5.4 SDLNet_AllocPacketV,
3.5.3 SDLNet_FreePacket,
4.4 UDPpacket