Internal: returns the native pointer for use by Session.open.
Pointer<Void> get nativePtr { _ensureNotDisposed(); _ensureNotConsumed(); return _ptr; }