19.0.0 released Nov 08, 2023
Purge fifo

Purpose: Delete FIFO list data.

purge-fifo <list> [ delete ]

purge-fifo will delete all elements from the FIFO <list>, created by new-fifo. The list is then empty and you can still put data into it, and get data from it afterwards, without having to call new-fifo again.

If you use "delete" clause, then all the internal memory of a <list> is freed, and you must call new-fifo in order to use it again.

Note that in any case, purge-fifo will not free any possibly allocated memory for keys or values stored in its elements (see write-fifo).

See memory-handling for more on when (not) to delete memory explicitly like this; the same rules apply as for delete-mem.
Examples
See read-fifo.
See also
FIFO
new-fifo  
purge-fifo  
read-fifo  
rewind-fifo  
write-fifo    
See all
documentation


You are free to copy, redistribute and adapt this web page (even commercially), as long as you give credit and provide a dofollow link back to this page - see full license at CC-BY-4.0. Copyright (c) 2019-2023 Dasoftver LLC. Vely and elephant logo are trademarks of Dasoftver LLC. The software and information on this web site are provided "AS IS" and without any warranties or guarantees of any kind. Icons from table-icons.io copyright PaweĊ‚ Kuna, licensed under MIT license.