void reattach(ffi.Pointer<ffi.Void> ptr) { dispose(); _ptr = ptr; if (attach) { finalizer.attach(this, _ptr, detach: this); } }