Skip to main content

read_owned_mutable_ptr

Function read_owned_mutable_ptr 

Source
pub unsafe fn read_owned_mutable_ptr(ptr: *mut u64) -> u64
Expand description

Read the raw u64 (Ptr-shaped) payload of an OwnedMutable cell.

§Safety

ptr must be non-null and point to a live Box<u64> cell allocated via alloc_owned_mutable_ptr. The returned bits are caller-owned from a refcount standpoint exactly to the extent the cell owned them; cloning into a separately-owned share is the caller’s responsibility (see ValueWord::clone_from_bits).