function ReadValues(const Src: TStream; Precision: TPrecision): Int64;
Read values content from stream to object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | Stream | |
| 2 | Precision | TPrecision |
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 Matrix.ReadHeader method call.
Examples
var b: Matrix;
AStream: TFileStream;
Precision: TPrecision;
begin
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;
end;
end;