System.Classes.TReader.ReadSignature

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ReadSignature;

C++

void __fastcall ReadSignature();

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Classes.pas
System.Classes.hpp
System.Classes TReader

Description

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

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.

See Also