System.Classes.ObjectTextToBinary

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

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