Summary
Writes the header information and the Values content to a stream.
Class
TMtxVec
Declaration
Procedure SaveToStream(DstStream: TStream);
Description
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.
Example 1
var b: TVec;
AStream: TFileStream;
begin
CreateIt(b);
b.SetIt(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
FreeIt(b);
end;
Declaration
Procedure SaveToStream(DstStream: System.IO.Stream);
Description
Load the component from the .NET framework Stream.| Copyright 2008 Dew Research |
http://www.dewresearch.com