void libnd_prec_init (); gboolean libnd_prec_put (LND_Packet *packet); LND_Packet* libnd_prec_get (guint mem_needed); |
gboolean libnd_prec_put (LND_Packet *packet); |
NOTE: DO NOT USE THIS FUNCTION. Use libnd_packet_free()
.
The function puts a packet into the recycler. It cleans it
up, looking at the amount of payload it can hold, and makes
it available when someone needs a packet that can hold up to
an equal amount.
packet to recycle.
LND_Packet* libnd_prec_get (guint mem_needed); |
NOTE: DO NOT USE THIS FUNCTION. Use libnd_packet_new()
.
The function returns a recycled packet that is able to hold
mem_needed bytes of payload.
amount of memory that new packet will need to carry.
unused packet.