You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Michael Kopp <mk...@ftisoft.at> on 2003/12/04 16:02:06 UTC

Xerces 2.3 IconvTranscoder question

Hi,

does anyone know why the IconvTranscoder allocates memory even if I provide the array to be filled?

The questionable coe part is:
bool IconvLCPTranscoder::transcode( const   char* const     toTranscode
                                    ,       XMLCh* const    toFill
                                    , const unsigned int    maxChars)

uses a temporary buffer for the translation and then copies that into the buffer provided (toFill).
Why is that? I also looked into a couple of other transcodes (Win32,Iconv390) which do not do that?

The reason why I am asking is that this is a significant performance disadvantage for me.

regards,

> Michael Kopp
> Financial Technologies International, Inc 
> A-4066 Pasching, Plus-Kaufstr.7
> Tel +43 (7229) 76656-23. Fax -99, 
> e-mail:mkopp@ftisoft.at
> http://www.ftisoft.at
> 
> This message is for the named person's use only.  It may contain confidential, proprietary or legally privileged information.  No confidentiality or privilege is waived or lost by any erroneous transmission. If you receive this message in error, please immediately destroy it and notify the sender.  You must not, directly or indirectly, use, disclose, distribute, or copy any part of this message if you are not the intended recipient.
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org