Vely logo install
examples
documentation

Vely 15.2.0 released on Jan 18, 2023
Articles updated Jan 17, 2023

write-fifo


Issues with this documentation page? Report here.

Purpose:


Write key/value pair into a FIFO list.

Syntax:



write-fifo <list> key <key> value <value>


Description:


write-fifo adds a key/value pair to the FIFO <list>, specified with string <key> and <value> (in "key" and "value" clauses). It always adds data to the end of the list. <value> is a pointer to any type, allowing storage of any kind of data. <key> and <value> must not go out of scope or be freed while FIFO is used - if necessary, store a copy (see copy-string for strings).

Examples:



new-fifo define nf
write-fifo nf key "mykey" value "myvalue"


See also:


FIFO ( new-fifo   purge-fifo   read-fifo   rewind-fifo   write-fifo  )  SEE ALL (documentation)



Copyright (c) 2022 DaSoftver LLC. Vely is a trademark of Dasoftver LLC. The software and information herein are provided "AS IS" and without any warranties or guarantees of any kind. Vely elephant logo (c) 2022 DaSoftver LLC. This web page is licensed under CC-BY-SA-4.0.