Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2007 Oct : Converting bytes/stream (not string) utf8/utf16/ansi/wide

www.cryer.info
Managed Newsgroup Archive

Converting bytes/stream (not string) utf8/utf16/ansi/wide

Subject:Converting bytes/stream (not string) utf8/utf16/ansi/wide
Posted by:"dk_sz" (dk_..@hotmail.com)
Date:Fri, 19 Oct 2007 05:03:45

Hi,


Using Delphi 2007 Pro


Does there exist any functions for converting
streams from one format to another?

I do not wish new large strings to be generated constantly...

(Speed and memory fragmentation issues.
It is actually a problem I encounter, and I know
from other places I have improved that it helps
to ENSURE memory allocations are minimzed)


My thought was using streams that have Capacity.
(Reuse the same memory without reallocations.)

But before I go out and write my own conversion functions,
do you know if any libraries already contain such funtionality.

best regards
Thomas Schulz

Replies:

www.cryer.info
Managed Newsgroup Archive