Borrow | Parameter attribute: the caller keeps ownership of the pointer and the callee must not free it. |
BorrowMut | Parameter attribute: the caller keeps ownership; the callee may write through the pointer but must not free it. |
CType | Declares the C type of a binding's return value or parameter when PHP's own type is too coarse. |
Give | Function attribute: the callee returns an owned pointer that the caller must free. |
Library | Names the native library that provides a binding's C symbol and adds it to the link line. |
Ptr | An opaque C pointer: a raw address with no automatic free. |
StaticPtr | Function attribute: the returned pointer refers to static or global memory that nobody frees. |
Symbol | Binds a PHP free function to the C symbol of the given name. |
Take | Parameter attribute: the callee takes ownership of the pointer and frees it at its own discretion. |
Variadic | Marks a binding as a C variadic function (ret f(a, b, ...)). |
Weak | Marks a binding whose C symbol may be missing on the current OS or target. |