Vcl.ComCtrls.TConversion.ConvertReadStream

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ConvertReadStream(Stream: TStream; Buffer: TConversionBuffer; BufSize: Integer): Integer; virtual;

C++

virtual int __fastcall ConvertReadStream(System::Classes::TStream* Stream, System::DynamicArray<System::Byte> Buffer, int BufSize);

Properties

Type Visibility Source Unit Parent
function public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TConversion

Description

Reads BufSize bytes from Stream into the memory buffer pointed to by Buffer.

To convert text between two formats, override this method in a descendant class and convert the text in the buffer. To create a descendant class that TCustomRichEdit can use, convert the text to RTF format.

Note: ConvertReadStream should reverse the conversion that ConvertWriteStream makes.

See Also