reattach method
Implementation
void reattach({ffi.Pointer<N>? newPtr}) {
if (newPtr != null) this.ptr = newPtr;
finalizer.detach(this);
finalizer.attach(this, ptr.cast<ffi.Void>(), detach: this);
}
void reattach({ffi.Pointer<N>? newPtr}) {
if (newPtr != null) this.ptr = newPtr;
finalizer.detach(this);
finalizer.attach(this, ptr.cast<ffi.Void>(), detach: this);
}