FFI::type

Creates an FFI\CType object from a C declaration

&reftitle.description; public static ``FFI\CType``null```FFI::type` `string` `type` public ``FFI\CType``null```FFI::type` `string` `type`

This function creates and returns a `FFI\CType` object for the given `string` containing a C type declaration. If this method is called statically, it must only use predefined C type names (e.g. `int`, `char`, etc.); if the method is called as instance method, any type declared for the instance is allowed.

&reftitle.parameters;

`type`

- A valid C declaration as `string`.

&reftitle.returnvalues;

Returns the freshly created `FFI\CType` object, or &null; on failure.