FFI::sizeof

Gets the size of C data or types

説明

public static int FFI::sizeof(FFI\CDataFFI\CType &$ptr)

Returns the size of the given FFI\CData or FFI\CType object.

パラメータ

ptr

The handle of the C data or type.

戻り値

The size of the memory area pointed at by ptr.