You are here: Symbol Reference > AbstractMtxVec Namespace > Classes > TMtxVec Class > public > TMtxVec.ReadValues Method
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxVec.ReadValues Method

Read values content from stream to object.

Pascal
function ReadValues(const Src: TStream; Precision: TPrecision; Endian: TEndianness = MtxSystemEndianness): integer; virtual; overload;

Reads values content from SrcStream stream to calling objct. No other values describing the data type or length are read from the DstStream. Number type is defined by the Precision parameter, which can be obtained from ReadHeader method call.

Use this method separately only, if you want user defined storage format.

var b: TVec; AStream: TFileStream; Precision: TPrecision; begin CreateIt(b); AStream := TFileStream.Create('C:test.bin',fmOpenRead); try Precision := b.ReadHeader(AStream); // Read info for b b.ReadValues(AStream,Precision); // Read values of b finally AStream.Free; FreeIt(b); end; end;
Examples on GitHub
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!