FFI::castPerforms a C type cast 説明
public FFI\CDatanull FFI::cast(FFI\CTypestring
$type , FFI\CDataintfloatboolnull &$ptr )
FFI::cast creates a new FFI\CData
object, that references the same C data structure, but is associated with a different type.
The resulting object does not own the C data, and the source パラメータ
戻り値Returns the freshly created FFI\CData object. 変更履歴
|