RAD Studio VCL Reference
TConversion.ConvertReadStream Method

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

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

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.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!