You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtxInt Class > TMtxInt Methods > TMtxInt.ReadHeader Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtxInt.ReadHeader Method

Reads the header information from a stream to object.

Syntax
C#
Visual Basic
public override TPrecision ReadHeader(Stream SrcStream, TEndianness Endian);

Reads the header information from a DstStream stream to calling object. The header information contains all necessary information defining the object. The function returns the precision in which the data was stored. This information is required for the ReadValues method.

var b: TVecInt; 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;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!