RefOrNull1 method

StructPointer<X> RefOrNull1([
  1. X? o
])

Allocates o into slot @slot:1, or returns nullptr if o is null.

Intended as a short-lived scratch reference within a single C call.

Implementation

StructPointer<X> RefOrNull1([X? o]) => o == null ? struct.ptr(MemoryPointer.nullptr()) : Ref1(o);