Skip to main content

read_shared_u16

Function read_shared_u16 

Source
pub unsafe fn read_shared_u16(cell: *const SharedCell) -> u16
Expand description

Read a u16 from a SharedCell’s payload, truncating the upper bytes.

§Safety

cell must point to a live SharedCell whose interior FieldKind is U16.