Vector.ReadValues Method

Int64 ReadValues(Stream Src, TPrecision Precision)

Read values content from stream to object.

#NameTypeDescription
1SrcStream
2PrecisionTPrecision

Returns: Int64

Remarks:

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 Dew.Math.Vector.ReadHeader method call.

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

Examples
Vector b;
TFileStream AStream;
TPrecision Precision;
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;
    }
See Also: Vector.ReadHeader, Vector.WriteValues, Vector.LoadFromStream