Php/docs/ffi.memcpy

提供:Dev Guides
< Php
2020年12月14日 (月) 09:50時点におけるNotes (トーク | 投稿記録)による版 (autoload)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

FFI::memcpy

(PHP 7 >= 7.4.0)

FFI::memcpyCopies one memory area to another


説明

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.


パラメータ

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.


返り値

値を返しません。