FFI::memset
PHP function
Edit on GitHub ✎
(PHP 7 >= 7.4.0, PHP 8)
Fills a memory area
Description
FFI::memset(FFI\CData $ptr, int $value, int $size): void
Fills size bytes of the memory area pointed to by ptr with the given byte value.
Parameters
ptrThe start of the memory area to fill.
valueThe byte to fill with.
sizeThe number of bytes to fill.
Return Values
Void