|Function||Read a vector in binary format from a stream|
|Syntax C/C++||#include <VFstd.h>
void VF_recall( fVector X, ui size, FILE *stream );
|C++ VecObj||#include <OptiVec.h>
void vector<T>::recall( FILE *stream );
procedure VF_recall( X:fVector; size:UIntSize; var Stream:FILE );
|Description||size elements of X are read from stream in binary format. Normally, these functions are used to retrieve data stored by the respective function of the VF_store family. The data type for reading and writing has to be the same. It is not possible to, e.g., store data by VF_store and recall them by VD_recall (in contrast to the corresponding write/read functions in ASCII format, see VF_read).
The VecObj version differs from the "normal" C/C++ version in that it reads vector objects, not only the vector elements. It first reads a ui, giving the size of the vector, and then size elements, whereas the V?_recall functions assume size as known and take it as an argument. Therefore, the VecObj function recall can be used only to read vector objects previously stored with the VecObj function store, but not vectors stored with one of the V?_store functions.
VectorLib Table of Contents OptiVec home