Yes that would nail it.
Cool - I'll stick with copying to strings for now and switch to that 
when it's available.

Many thanks,

Phil

Slava Pestov wrote:
> There's no way of doing that right now. Are you interested in reading/ 
> writing byte arrays on stream? We're going to add this soon.
> 
> Slava
> 
> On 10-Dec-07, at 4:01 PM, Phil Dawes wrote:
> 
>> Hi factor list,
>>
>> Is there any way to turn a byte-array into a string without copying  
>> it?
>> (i.e. reusing the underlying storage)
>>
>> N.B. My underlying requirement is to be able to load and save
>> byte-arrays without copying.
>>
>> Cheers,
>>
>> Phil
>>
>>
>> ---------------------------------------------------------------------- 
>> ---
>> SF.Net email is sponsored by:
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>> http://sourceforge.net/services/buy/index.php
>> _______________________________________________
>> Factor-talk mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/factor-talk
> 
> 
> -------------------------------------------------------------------------
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Factor-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/factor-talk
> 



-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to