Skip to main content

unshare_inline

Function unshare_inline 

Source
pub unsafe fn unshare_inline(payload: &mut ValuePayload) -> *mut ()
Expand description

Inline unshare: inline words hold bytes, not a heap buffer, so there is nothing to hand out mutably. Panics: reaching this hook means Value::read_heap_mut was called with an inline descriptor, a caller bug (mirrors store_inline’s size assert).

§Safety

The payload must hold inline bytes (never a live pointer).