Vcl.ComCtrls.TConversion.ConvertWriteStream

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

virtual int __fastcall ConvertWriteStream(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

Writes BufSize bytes to Stream from 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 from RTF format.

Note: ConvertWriteStream should reverse the conversion that ConvertReadStream makes.

See Also