You are here: Symbol Reference > AbstractMtxVecInt Namespace > Classes > TMtxVecInt Class > public > TMtxVecInt.WriteValues Method
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxVecInt.WriteValues Method

Writes object Values content to a stream.

Pascal
procedure WriteValues(DstStream: TStream; aPrecision: TPrecision = prInteger; Endian: TEndianness = MtxSystemEndianness); virtual; overload;

Writes the calling object Values content to the DstStream stream. No other values describing the data type or length are written to the DstStream. Number type is defined by the Precision parameter, but only integer formats are accepted. Attempt to save single (float) precision or double precision will raise an exception. The paramateres must be the same as for the WriteHeader method. Use this method separately only, if you want user defined storage format.

var b: TVecInt; AStream: TFileStream; begin CreateIt(b); b.SetIt([0,0,1,3,2]); AStream := TFileStream.Create('C:test.Vec',fmCreate); try b.WriteHeader(AStream); // Write info for b b.WriteValues(AStream); // Write values of 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!