Skip to main content

typed_ptr

Function typed_ptr 

Source
pub fn typed_ptr(file_id: u64, offset: u64, ordinal: RttiOrdinal) -> WidePtr
Expand description

Build an RTTI-typed pointer: a WidePtr to (file_id, offset) tagged with ordinal. file_id == 0 ⇒ SELF. For an untyped pointer (type recovered from the target block header on deref) use WidePtr::from_raw with a 0 type index. The raw (file_id, offset) inputs are decoded through the wire boundary.