You are here: Symbol Reference > MtxVecBase Namespace > Classes > TMtxVecBase Class > public > TMtxVecBase.SaveToStream Method
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxVecBase.SaveToStream Method

Writes the header information and the Values content to a stream.

Pascal
procedure SaveToStream(const Dst: TStream); virtual; overload;

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.

LoadFromStream, WriteHeader, WriteValues, SaveToFile

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;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!