MCPcopy Create free account
hub / github.com/NativeScript/android / Copy

Method Copy

test-app/runtime/src/main/cpp/include/v8-persistent-handle.h:457–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455template <class T, class M>
456template <class S, class M2>
457void Persistent<T, M>::Copy(const Persistent<S, M2>& that) {
458 static_assert(std::is_base_of<T, S>::value, "type check");
459 this->Reset();
460 if (that.IsEmpty()) return;
461 internal::Address* p = reinterpret_cast<internal::Address*>(that.val_);
462 this->val_ = reinterpret_cast<T*>(api_internal::CopyGlobalReference(p));
463 M::Copy(that, this);
464}
465
466template <class T>
467bool PersistentBase<T>::IsWeak() const {

Callers

nothing calls this directly

Calls 2

ResetMethod · 0.45
IsEmptyMethod · 0.45

Tested by

no test coverage detected