Searched refs:nativeObject (Results 1 – 9 of 9) sorted by relevance
/third_party/node/test/parallel/ |
D | test-worker-message-port-transfer-native.js | 28 const nativeObject = new (internalBinding('js_stream').JSStream)(); 31 port1.postMessage(nativeObject);
|
/third_party/node/test/js-native-api/8_passing_wrapped/ |
D | myobject.cc | 14 napi_env env, void* nativeObject, void* /*finalize_hint*/) { in Destructor() argument 15 MyObject* obj = static_cast<MyObject*>(nativeObject); in Destructor()
|
D | myobject.h | 9 static void Destructor(napi_env env, void* nativeObject, void* finalize_hint);
|
/third_party/node/test/js-native-api/7_factory_wrap/ |
D | myobject.cc | 11 void* nativeObject, in Destructor() argument 14 MyObject* obj = static_cast<MyObject*>(nativeObject); in Destructor()
|
D | myobject.h | 9 static void Destructor(napi_env env, void* nativeObject, void* finalize_hint);
|
/third_party/node/test/js-native-api/6_object_wrap/ |
D | 6_object_wrap.cc | 12 napi_env env, void* nativeObject, void* /*finalize_hint*/) { in Destructor() argument 13 MyObject* obj = static_cast<MyObject*>(nativeObject); in Destructor()
|
D | myobject.h | 9 static void Destructor(napi_env env, void* nativeObject, void* finalize_hint);
|
/third_party/mindspore/patches/ |
D | 0027-js-buffer-leakage-bugfix.patch | 38 static void Finalize(napi_env env, void *nativeObject, void *finalize); 191 void MSTensorNapi::Finalize(napi_env env, void *nativeObject, void *finalize) {
|
D | 0008-add-js-api.patch | 642 + static void Finalize(napi_env env, void *nativeObject, void *finalize); 708 + static void Finalize(napi_env env, void *nativeObject, void *finalize); 1173 +void MSLiteModelNapi::Finalize(napi_env env, void *nativeObject, void *finalize) { 1176 + if (nativeObject != nullptr) { 1177 + // delete nativeObject 1178 + auto obj = static_cast<MSLiteModelNapi *>(nativeObject); 2234 +void MSTensorNapi::Finalize(napi_env env, void *nativeObject, void *finalize) { 2237 + if (nativeObject != nullptr) { 2238 + delete reinterpret_cast<MSTensorNapi *>(nativeObject);
|