System.Classes.ObjectTextToBinary

From RAD Studio API Documentation
Revision as of 19:44, 11 November 2011 by L10nBot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Delphi

procedure ObjectTextToBinary(Input, Output: TStream);
procedure ObjectTextToBinary(Input, Output: TStream; var OriginalFormat: TStreamOriginalFormat);

C++

extern DELPHI_PACKAGE void __fastcall ObjectTextToBinary(TStream* Input, TStream* Output)/* overload */;

Contents

Properties

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

Description

Converts a symbolic text representation of an object into the binary version that is used to save the object to files or memory streams.

Call ObjectTextToBinary to create the internal representation of a component from a symbolic text representation. ObjectTextToBinary creates a TWriter object for the Output stream, and uses this to write the form file representation of the object from the symbolic representation that is read from the Input stream. OriginalFormat indicates whether the output stream stores the object in binary or text format.

Use the ReadComponent method of the output stream to obtain the actual object.

See Also

Code Examples


Personal tools
Translations