array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'ffi.memset.php', 1 => 'FFI::memset', ), 'up' => array ( 0 => 'class.ffi.php', 1 => 'FFI', ), 'prev' => array ( 0 => 'ffi.memcpy.php', 1 => 'FFI::memcpy', ), 'next' => array ( 0 => 'ffi.new.php', 1 => 'FFI::new', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/ffi/ffi/memset.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 7 >= 7.4.0, PHP 8)
FFI::memset — Fills a memory area
Fills size
bytes of the memory area pointed to by
ptr
with the given byte value
.
ptr
The start of the memory area to fill.
value
The byte to fill with.
size
The number of bytes to fill.
没有返回值。