Name | nbfread
|
Definition | nbfread(f:val(bfile),data:var(T:type)) : expr(bool).
|
Defined in | io.l
|
Implementation | builtin
|
Description | Read enough bytes from the given non-blocking binary file to fill the variable data.
|
Note | The interpretation of the data depends on the host byte order. Reading strings using this function will not work. If no bytes are available to read thn do not block just return false. As soon as
data is available block until the entire variable has been read then return true. This function can be most easily
used with a wait_until loop. e.g. wait_until (nbfread (somefile, somevariable)) will perform a polled read of the
file somefile without blocking other LARD threads.
|