RAD Studio VCL Reference
TReader.ReadSignature Method

Reads the filer signature from the reader object's associated stream.

procedure ReadSignature;
__fastcall ReadSignature();

ReadSignature is used by several routines to ensure that the file about to be read is a valid component stream. For example, ReadRootComponent, calls ReadSignature before reading its component from the stream. By checking for the signature before loading objects, the reader object can guard against inadvertently reading invalid or corrupted data. 

The signature is a four-character sequence. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!