Re: Re: [Chicken-users] binary data

2006-09-12 Thread john
Thanks guys for the responses. Another related question... If I allocate memory in Chicken using a byte-vector and pass this over to C, what happens if the C code consumes the memory and does a realloc on its pointer? I am guessing Chicken (byte-vector-length) would just not know about any

Re: [Chicken-users] binary data

2006-09-12 Thread john
Ok thanks, I understand what route to take now. Cheers, John. On 12/09/06, Kon Lovett [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sep 12, 2006, at 12:01 PM, john wrote: Thanks guys for the responses. Another related question... If I allocate memory in

[Chicken-users] binary data

2006-09-11 Thread john
Hi! Is there an efficient way to retrieve some binary data from C into Chicken so that I could then read and write the data over a network using Chicken rather than using the FFI? The data I have allocated in C may contain nulls so I am not able to bring it over as a c-string. I have noticed the