Skip to main content

Module mx_abi

Module mx_abi 

Source
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.