MCPcopy Index your code
hub / github.com/nodejs/node-addon-api / Ref

Method Ref

napi-inl.h:3744–3749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3742
3743template <typename T>
3744inline uint32_t Reference<T>::Ref() const {
3745 uint32_t result;
3746 napi_status status = napi_reference_ref(_env, _ref, &result);
3747 NAPI_THROW_IF_FAILED(_env, status, 0);
3748 return result;
3749}
3750
3751template <typename T>
3752inline uint32_t Reference<T>::Unref() const {

Callers 5

RefObjectsFunction · 0.80
ReferenceRefTestsFunction · 0.80
TestRefFunction · 0.80
TestUnrefFunction · 0.80
TestRefFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestRefFunction · 0.64
TestUnrefFunction · 0.64
TestRefFunction · 0.64