Skip to main content

init_carrier

Function init_carrier 

Source
pub(super) unsafe fn init_carrier<T: TypedExternal>(owner: SEXP)
Expand description

Puts a carrier for the value owner holds in the last slot of its new protection list. A construction site calls it after the address is set.

§Safety

On R’s main thread, with owner a rooted pointer built for a T whose protection list is prot_vec_len::<T>() long.