FFI
in package
This class contains the libvips FFI methods.
Tags
Table of Contents
Properties
- $ftypes : array<string|int, mixed>
- $gtypes : array<string|int, mixed>
- $library_micro : int
- $library_minor : int
Methods
- addLibraryPath() : bool
- Adds a directory to the search path for shared libraries.
- atLeast() : bool
- Is this at least libvips major.minor[.patch]?
- ctypes() : CType
- ftypes() : string
- glib() : FFI
- gobject() : FFI
- gtypes() : int
- newGClosure() : CData
- shutDown() : void
- Shut down libvips. Call this just before process exit.
- version() : string
- Gets the libvips version number as a string of the form MAJOR.MINOR.MICRO, for example "8.6.1".
- vips() : FFI
- init() : void
- libraryLoad() : FFI|null
- libraryName() : string
Properties
$ftypes
private
static array<string|int, mixed>
$ftypes
$gtypes
private
static array<string|int, mixed>
$gtypes
$library_micro
private
static int
$library_micro
$library_minor
private
static int
$library_minor
Methods
addLibraryPath()
Adds a directory to the search path for shared libraries.
public
static addLibraryPath(string $path) : bool
This method has no effect if FFI handles are already initialized, if the specified path is non-existent, or if the path is already included.
Parameters
- $path : string
-
The path of the library.
Return values
bool —true
if the path was added; otherwise, false
.
atLeast()
Is this at least libvips major.minor[.patch]?
public
static atLeast(int $x, int $y[, int $z = 0 ]) : bool
Parameters
- $x : int
-
Major component.
- $y : int
-
Minor component.
- $z : int = 0
-
Patch component.
Return values
bool —true
if at least libvips major.minor[.patch]; otherwise, false
.
ctypes()
public
static ctypes(string $name) : CType
Parameters
- $name : string
Return values
CTypeftypes()
public
static ftypes(string $name) : string
Parameters
- $name : string
Return values
stringglib()
public
static glib() : FFI
Return values
FFIgobject()
public
static gobject() : FFI
Return values
FFIgtypes()
public
static gtypes(string $name) : int
Parameters
- $name : string
Return values
intnewGClosure()
public
static newGClosure() : CData
Return values
CDatashutDown()
Shut down libvips. Call this just before process exit.
public
static shutDown() : void
version()
Gets the libvips version number as a string of the form MAJOR.MINOR.MICRO, for example "8.6.1".
public
static version() : string
Return values
stringvips()
public
static vips() : FFI
Return values
FFIinit()
private
static init() : void
libraryLoad()
private
static libraryLoad(string $libraryName, string $interface) : FFI|null
Parameters
- $libraryName : string
- $interface : string
Return values
FFI|nulllibraryName()
private
static libraryName(string $name, int $abi) : string
Parameters
- $name : string
- $abi : int