Php/docs/ffi.memcpy
From Get docs
FFI::memcpy
(PHP 7 >= 7.4.0)
FFI::memcpy — Copies one memory area to another
Description
public static FFI::memcpy
( FFI\CData &$dst
, mixed &$src
, int $size
) : void
Copies size
bytes from the memory area src
to the memory area dst
. Both src
and
dst
can be any native data structures (FFI\CData)
or PHP strings.
Parameters
dst
- The start of the memory area to copy to.
src
- The start of the memory area to copy from.
size
- The number of bytes to copy.
Return Values
No value is returned.