Expand description
C-callable mx_abi functions (mx_wrap, mx_get, mx_query, mx_abi_register).
These are registered via R_RegisterCCallable during package init and
loaded by consumer packages via R_GetCCallable.
Rust implementation of the mx_abi C-callable functions.
These functions are registered with R_RegisterCCallable during package init
and loaded by consumer packages via R_GetCCallable.
This module replaces the C implementation that was previously in mx_abi.c.in.
Staticsยง
- MX_TAG ๐
- The tag symbol used to identify miniextendr external pointers.
SEXP is Send+Sync so OnceLock
works directly.
Functionsยง
- get_tag ๐ โ
- Get the miniextendr tag symbol, initializing it if needed.
- mx_
abi_ โregister - Register the mx_* C-callables with R.
- mx_
externalptr_ ๐ โfinalizer - Finalizer callback for Rโs garbage collector.
- mx_getโ
- Extract an erased object pointer from an R external pointer.
- mx_
query โ - Query an object for an interface vtable by tag.
- mx_wrapโ
- Wrap an erased object pointer in an R external pointer.