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

Method Reset

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

Source from the content-addressed store, hash-verified

473
474template <class T>
475void PersistentBase<T>::Reset() {
476 if (this->IsEmpty()) return;
477 api_internal::DisposeGlobal(reinterpret_cast<internal::Address*>(this->val_));
478 val_ = nullptr;
479}
480
481/**
482 * If non-empty, destroy the underlying storage cell

Callers 4

~PersistentFunction · 0.45
~GlobalFunction · 0.45
CopyMethod · 0.45

Calls 3

IsEmptyMethod · 0.95
ResetFunction · 0.85
NewFunction · 0.85

Tested by

no test coverage detected