MatrixInt.ReadHeader Method

function ReadHeader(const SrcStream: TStream): TPrecision;

Reads the header information from a stream to object.

#NameTypeDescription
1SrcStreamStream

Returns: TPrecision

Remarks:

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 MatrixInt.ReadValues method.

Examples
var b: MatrixInt;
AStream: TFileStream;
Precision: TPrecision;
begin
    AStream := TFileStream.Create('C:\test.bin',fmOpenRead);
    Precision := b.ReadHeader(AStream); // Read info for b
    b.ReadValues(AStream,Precision); // Read values of b
finally
    AStream.Free;
    FreeIt(b);
end;
end;
See Also: MatrixInt.ReadValues, MatrixInt.WriteValues, MatrixInt.WriteHeader