RefOrNull1 method
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);