Module ownership

Source
Expand description

Maintain ownership of R objects.

This provides the functions protect and unprotect. A single preserved vector holds ownership of all protected objects.

Objects are reference counted, so multiple calls are possible, unlike R_PreserveObject.

This module exports two functions, protect(sexp) and unprotect(sexp).

Modulesยง

send_sexp ๐Ÿ”’
Provide a wrapper around Rโ€™s pointer type SEXP that is Send.

Structsยง

Object ๐Ÿ”’
Ownership ๐Ÿ”’

Constantsยง

EXTRA_PRESERVATION_SIZE
INITIAL_PRESERVATION_SIZE

Staticsยง

OWNERSHIP ๐Ÿ”’

Functionsยง

protect ๐Ÿ”’ โš 
unprotect ๐Ÿ”’ โš