NativeHandle
in package
AbstractYes
Table of Contents
Properties
- $handle : mixed
- $destroyed : bool
Methods
- __construct() : mixed
- __destruct() : mixed
- Frees the native handle when this wrapper is garbage-collected.
- destroy() : void
- Frees the native handle through libdave. Idempotent — safe to call more than once.
- raw() : mixed
- The underlying native handle.
- destroyMethod() : string
- The libdave FFI function name that frees this kind of handle.
Properties
$handle
protected
mixed
$handle
$destroyed
private
bool
$destroyed
= false
Methods
__construct()
public
__construct(mixed $handle) : mixed
Parameters
- $handle : mixed
-
The raw libdave native pointer/object this wrapper takes ownership of.
__destruct()
Frees the native handle when this wrapper is garbage-collected.
public
__destruct() : mixed
destroy()
Frees the native handle through libdave. Idempotent — safe to call more than once.
public
destroy() : void
raw()
The underlying native handle.
public
raw() : mixed
Tags
destroyMethod()
The libdave FFI function name that frees this kind of handle.
protected
abstract destroyMethod() : string