TSparseMtx.WriteValues Method

Overload List

#SignatureDescription
1procedure WriteValues(const Dst: TStream); overload; virtual;Writes the header information for the calling vector to a stream.
2procedure WriteValues(const Dst: TStream; Precision: TPrecision; Rounding: TRounding = rnTrunc; Endian: TEndianness = MtxSystemEndianness); overload; virtual;Writes object Values content to a stream.

Overload 1: procedure WriteValues(const Dst: TStream); overload; virtual;

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

#NameTypeDescription
1DstTStream

Result: stored in self (calling object)

Overload 2: procedure WriteValues(const Dst: TStream; Precision: TPrecision; Rounding: TRounding = rnTrunc; Endian: TEndianness = MtxSystemEndianness); overload; virtual;

Writes object Values content to a stream.

#NameTypeDescription
1DstTStream
2PrecisionTPrecision
3RoundingTRounding
4EndianTEndianness

Result: stored in self (calling object)

Remarks:

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. Rounding defines the rounding for integer types. When saving double precision as single precision, all overflows are saved as INF (-INF). When saving to integer types all overflows are clipped. Attempt to save single precision as double precision will raise an exception. The paramateres must be the same as for the TMtxVec.WriteHeader method. Use this method separately only, if you want user defined storage format.