[REBOL] Re: How to send big string to library and back?
From: petr:krenzelok:trz:cz at: 16-Apr-2001 10:14
----- Original Message -----
From: "Andrew Martin" <[Al--Bri--xtra--co--nz]>
Sent: Monday, April 16, 2001 7:47 AM
Subject: [REBOL] Re: How to send big string to library and back?
> Sounds like you need a unsigned integer array. Try this in C:
> const unsigned uWidth = 500;
> const unsigned uHeight = 400;
> const unsigned uSize = uWidth * uHeight;
> unsigned uCamera[uSize];
> You can put values into the array like:
> uCamera = 0x0010; // First position in array.
> uCamera = 0x0000;
> uCamera[uSize - 1] = 0xF123; file://Last position in array.
> I hope that helps!
I will pass it to my friend who will code in C for us. However - how should
I put Rebol string datatype into array of unsigned values??? I don't want to
taky any time consuming operation in Rebol, as that's exactly the reason why
I want to call library function - the speed ...
The simple question once again :-) - Is string sent to library interface
being automatically ended once "0" char appears in it? (and vice versa - the
same for string returning from library interface to Rebol?)