Umm, there is a String conversion method that takes a length as well.
Also, if you can predict the maximum length ahead of time, you can
allocate a BufferString, read the data directly into the buffer string
and than convert this into a true string using the appopriate length.
The charin() function works this way if you'd like an example.

Rick

On Thu, Jan 7, 2010 at 7:11 PM, David Ashley <david.ashley....@gmail.com> wrote:
> Rick/Mark -
>
> I have come across a problem using the new C++ API. I have a buffer of
> data that I want to return from a method as a RexxString. The problem is
> that this buffer may contain embedded nulls, thus none of the
> String/CSTRING methods will work for the conversion. Is there a way to
> do this?
>
> David Ashley
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to