void SaveToStream(DewStream *Dst) const;
Writes the header information and the Values content to a stream.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Dst | DewStream * |
Remarks:
Writes the header information and the Values content to a DstStream stream. Number type is defined by the Precision parameter. Rounding defines the rounding for integer types. When saving double precision as single precision, all overflows are saved as INF (-INF). When saving to integer types all overflows are clipped. Attempt to save single precision as double precision will raise an exception.
Examples
#include "MtxExpr.h"
using namespace Dew;
using namespace Dew::Math;
void Example()
{
Vector b;
FileStream* AStream;
b = {0, 0, 1, 3, 2};
AStream = new FileStream("test.Vec", FileMode::Create);
b.SaveToStream(AStream); // Write info and header for b
delete AStream;
}
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler