编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « FFI::scope
  • FFI::string »
  • PHP Manual
  • FFI
  • Gets the size of C data or types

FFI::sizeof

(PHP 7 >= 7.4.0)

FFI::sizeof — Gets the size of C data or types

说明

public static FFI::sizeof ( mixed &$ptr ) : int

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.

相关文章
php cairoimagesurface gets the image data as stringphp ffi c data handlesphp ffi creates an unmanaged pointer to c dataphp ffi gets the alignmentphp ffi creates a c data structurephp ffi gets the size of c data or typesphp cubrid 函数 get blob/clob data sizephp ibm db2 函数 gets a user defined size of lob files with each invocationphp mhash 函数 gets the block size of the specified hashphp odbc 函数 retrieves information about data types supported by the data sourcephp rrd 函数 gets information about last updated dataphp gearmantask get the size of returned dataphp imagick gets point sizephp pht hashtable gets the size of the hash tablephp pht vector gets the size of the vectorphp solrcollapsefunction sets the initial size of the collapse data structures when collapsing on a numeric field onlyphp splfileinfo gets file sizephp splfixedarray gets the size of the arrayphp swoole buffer append the string or binary data at the end of the memory buffer and return the new size of memory allocated.php zookeeper gets the data associated with a node synchronously
关注编程学问公众号
编程学问网 湘ICP备20001732号