System.Classes.ObjectBinaryToText

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

extern DELPHI_PACKAGE void __fastcall ObjectBinaryToText(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 the binary representation of an object into more readily understandable text.

Call ObjectBinaryToText to convert the representation of an object as it is saved in files and memory streams into a text version that human readers can understand. ObjectBinaryToText creates a TReader object for the Input stream, and uses this to read the saved representation of the object. A symbolic text representation is then written to the Output stream. OriginalFormat indicates the format in which the object was saved.

Use the WriteComponent method of the Input stream to write a binary representation before calling ObjectBinaryToText.

See Also

Code Examples