long long LoadFromStream(DewStream *Src) const;
Reads the header information and the values array content from a stream.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | DewStream * |
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