[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] How do I plug into (lolevel) move-memory! ?

From: Dale Jordan
Subject: [Chicken-users] How do I plug into (lolevel) move-memory! ?
Date: Wed, 24 Sep 2003 11:56:50 -0700

I'm trying to write a procedure with the following signature:

  (copy-bytes! s-bv s-offs d-bv d-offs n)

that copies n bytes from a source byte-vector to a destination byte-vector
with given offsets, using the move-memory! procedure in lolevel.  I can't
figure out the right combination of parameter juggling to get pointers to
the two blocks;  I assume one has to dereference the pointer to the
byte-vector body, but  various things I've tried turn up with bad argument
types.  It would be nice if the code worked for both 64 and 32 bit archs.

Do I have to resort to C and FFI?

Dale Jordan

reply via email to

[Prev in Thread] Current Thread [Next in Thread]