Since: 7.4

final class CData mixin Countable mixin Traversable<int<0, mixin ArrayAccess<int<0, (View source)

Proxy object that provides access to compiled structures.

  • In the case that {\FFI\CData} is a wrapper over raw C data, it contains an additional {\FFI\CData::$cdata} property.

  • In the case that the CData is a wrapper over an arbitrary C structure, then it allows reading and writing to the fields defined by this structure.

  • In the case that CData is a wrapper over an array, it is an implementation of the {\Traversable}, {\Countable}, and {\ArrayAccess}

  • In the case when CData is a wrapper over a function pointer, it can be called.

Properties

T $cdata

Methods

mixed
__get(string $name)

No description

mixed
__set(string $name, mixed $value)

No description

mixed
__invoke(mixed ...$args)

No description

Details

mixed __get(string $name)

No description

Parameters

string $name

Return Value

mixed

mixed __set(string $name, mixed $value)

No description

Parameters

string $name
mixed $value

Return Value

mixed

mixed __invoke(mixed ...$args)

No description

Parameters

mixed ...$args

Return Value

mixed