Vector::LoadFromStream Method

long long LoadFromStream(DewStream *Src) const;

Reads the header information and the values array content from a stream.

#NameTypeDescription
1SrcDewStream *
Remarks:

Reads the header information and the values array content from the SrcStream. The return value indicates the number of elements read.

Examples
#include "MtxExpr.h"

using namespace Dew;
using namespace Dew::Math;

void Example()
{
    Vector b;
    FileStream* AStream;

    b.SetIt(false, DewArray<double>{0, 0, 1, 3, 2});
    b.SaveToFile("test.Vec");
    AStream = new FileStream("test.Vec", FileMode::Open);
    b.LoadFromStream(AStream); // Read info and header for b
    delete AStream;
}
See Also: Vector::SaveToStream, Vector::LoadFromFile
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler