System.Classes.TWriter.WriteSignature

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure WriteSignature;

C++

void __fastcall WriteSignature();

Properties

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

Description

Writes a filer signature to the writer object's associated stream.

WriteSignature is used internally by several methods that write the filer signature before processing some action. For example, the WriteRootComponent method calls WriteSignature before writing its component to the stream. By checking for the signature before loading objects, reader objects can guard against inadvertently reading invalid or corrupted data.