procedure SaveToStream(const Dst: TStream);
Writes the header information and the Values content to a stream.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Dst | Stream |
Result: stored in self (calling object)
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
var b: Matrix;
AStream: TFileStream;
begin
b.SetIt(2,2,False,[0,0,1,3,2]);
AStream := TFileStream.Create('C:\test.Vec',fmCreate);
try
b.SaveToStream(AStream); // Write info and header for b
finally
AStream.Free;
end
end;