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

Reads the header information and the values array content from a stream.

Pascal
function LoadFromStream(const Src: TStream): Int64; virtual; overload;

Reads the header information and the values array content from the SrcStream. The return value indicates the number of elements read.

var b: TVec; AStream: TFileStream; begin CreateIt(b); try b.SetIt(False,[0,0,1,3,2]); AStream := TFileStream.Create('C:test.Vec',fmCreate); try b.LoadFromStream(AStream); // Read info and header for b finally AStream.Free; end; finally FreeIt(b); end; end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!