Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: How to send big string to library and back?

From: al:bri:xtra at: 16-Apr-2001 21:45

pekr, is the camera image binary data or is it encoded into characters? I get the impression that it's binary. So it shouldn't be passed as a string to the C library. Better would be as a unsigned array as I described earlier. It's possible to append a null value to Rebol strings like:
>> s: "123"
== "123"
>> append s "^(00)"
== "123^@" so as to fool the C library that this is a proper C string. Just don't make it larger in the C library! Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/