RefOrNull4 method

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

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

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

Implementation

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