TReader.ReadSignature

Read stream signature from the stream

Declaration

Source position: classesh.inc line 1575

public 
  procedure ReadSignature;

Description

ReadSignature is called when starting to read a root component from a stream. Some streams contain a signature (header) to detect whether the stream contains correct data.

Errors

If the stream does not start with the correct signature, an EReadError exception will be raised.

See also

Name Description
TAbstractObjectReader.ReadSignature Read resource signature
TAbstractObjectWriter.WriteSignature Write stream signature to the stream