FFI::sizeof

Gets the size of C data or types

Description

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

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

Parameters

ptr

The handle of the C data or type.

Return Values

The size of the memory area pointed at by ptr.