php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
FFI Class Reference

Static Public Member Functions

static cdef (string $code="", ?string $lib=null)
 
static load (string $filename)
 
static scope (string $name)
 
static new (FFI\CType|string $type, bool $owned=true, bool $persistent=false)
 
static free (FFI\CData $ptr)
 
static cast (FFI\CType|string $type, $ptr)
 
static type (string $type)
 
static typeof (FFI\CData $ptr)
 
static arrayType (FFI\CType $type, array $dimensions)
 
static addr (FFI\CData $ptr)
 
static sizeof (FFI\CData|FFI\CType $ptr)
 
static alignof (FFI\CData|FFI\CType $ptr)
 
static memcpy (FFI\CData $to, $from, int $size)
 
static memcmp ($ptr1, $ptr2, int $size)
 
static memset (FFI\CData $ptr, int $value, int $size)
 
static string (FFI\CData $ptr, ?int $size=null)
 
static isNull (FFI\CData $ptr)
 

Data Fields

const int __BIGGEST_ALIGNMENT__ = UNKNOWN
 

Detailed Description

@not-serializable

Definition at line 7 of file ffi.stub.php.

Member Function Documentation

◆ addr()

static FFI::addr ( FFI\CData $ptr)
static

@prefer-ref $ptr

Definition at line 37 of file ffi.stub.php.

◆ alignof()

static FFI::alignof ( FFI\CData|FFI\CType $ptr)
static

@prefer-ref $ptr

Definition at line 43 of file ffi.stub.php.

◆ arrayType()

static FFI::arrayType ( FFI\CType $type,
array $dimensions )
static

Definition at line 34 of file ffi.stub.php.

◆ cast()

static FFI::cast ( FFI\CType|string $type,
$ptr )
static
Parameters
FFI\CData | int | float | bool | null$ptr@prefer-ref $ptr

Definition at line 27 of file ffi.stub.php.

◆ cdef()

static FFI::cdef ( string $code = "",
?string $lib = null )
static

Definition at line 12 of file ffi.stub.php.

◆ free()

static FFI::free ( FFI\CData $ptr)
static

@prefer-ref $ptr

Definition at line 21 of file ffi.stub.php.

◆ isNull()

static FFI::isNull ( FFI\CData $ptr)
static

@prefer-ref $ptr

Definition at line 67 of file ffi.stub.php.

◆ load()

static FFI::load ( string $filename)
static

Definition at line 14 of file ffi.stub.php.

◆ memcmp()

static FFI::memcmp ( $ptr1,
$ptr2,
int $size )
static

@prefer-ref $ptr1

Parameters
string | FFI\CData$ptr1@prefer-ref $ptr2
string | FFI\CData$ptr2

Definition at line 58 of file ffi.stub.php.

◆ memcpy()

static FFI::memcpy ( FFI\CData $to,
$from,
int $size )
static
Parameters
FFI\CData | string$from@prefer-ref $to @prefer-ref $from

Definition at line 50 of file ffi.stub.php.

◆ memset()

static FFI::memset ( FFI\CData $ptr,
int $value,
int $size )
static

@prefer-ref $ptr

Definition at line 61 of file ffi.stub.php.

◆ new()

static FFI::new ( FFI\CType|string $type,
bool $owned = true,
bool $persistent = false )
static

Definition at line 18 of file ffi.stub.php.

◆ scope()

static FFI::scope ( string $name)
static

Definition at line 16 of file ffi.stub.php.

◆ sizeof()

static FFI::sizeof ( FFI\CData|FFI\CType $ptr)
static

@prefer-ref $ptr

Definition at line 40 of file ffi.stub.php.

◆ string()

static FFI::string ( FFI\CData $ptr,
?int $size = null )
static

@prefer-ref $ptr

Definition at line 64 of file ffi.stub.php.

◆ type()

static FFI::type ( string $type)
static

Definition at line 29 of file ffi.stub.php.

◆ typeof()

static FFI::typeof ( FFI\CData $ptr)
static

@prefer-ref $ptr

Definition at line 32 of file ffi.stub.php.

Field Documentation

◆ __BIGGEST_ALIGNMENT__

const int FFI::__BIGGEST_ALIGNMENT__ = UNKNOWN

@cvalue BIGGEST_ALIGNMENT

Definition at line 10 of file ffi.stub.php.


The documentation for this class was generated from the following file: