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

Writes the header information for the calling vector to a stream.

Syntax
C#
Visual Basic
public override void WriteHeader(Stream DstStream, TPrecision aPrecision, TEndianness Endian);

Writes the header information for the calling object to a DstStream stream. The header information contains information about object (size, type of values in Values array, ...) which all define the state of the object. Number type is defined by the Precision parameter. Attempt to save single precision or double precision will raise an exception.

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