Re: ffi.copy

  • From: Mike Pall <mike-1206@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sat, 16 Jun 2012 14:30:29 +0200

Justin Cormack wrote:
> I notice ffi.copy does memcpy(3), any chance it could do memmove(3)
> instead? Otherwise you cant copy overlapping areas...

Well, you could call ffi.C.memmove() for these cases, no?

--Mike

  • References:

Other related posts:

  • » ffi.copy- Justin Cormack
  • » Re: ffi.copy - Mike Pall