[REBOL] Re: callbacks
From: moliad:g:mail at: 1-Nov-2007 1:04
oops, forgot the func... here it is :-)
note, this is a stand-alone function, it does not expressly rely on any of
the funcs within peekpoke.r
memcopy: func [
{copies a region of ram given at address with sizeof length.}
address [integer!]
length [block!]
/local struct-struct buffer addr
] [
address: make struct! [address [integer!]] reduce [address]
struct-struct: make struct! compose/deep [ struct [struct! [[save]
(spec)]]] none
addr: copy third struct-struct
change third struct-struct third address
buffer: copy third struct-struct/struct address head insert/dup copy []
[c [char]] length
change third struct-struct third addr
buffer
]
-MAx
On 11/1/07, Maxim Olivier-Adlhoch <moliad-gmail.com> wrote: