/ohos5.0/docs/zh-cn/application-dev/napi/ |
H A D | use-napi-about-class.md | 24 | napi_remove_wrap | 从ArkTS对象上获取之前绑定的Node-API模块对象实例,并解除绑定。 | 110 ### napi_remove_wrap subsection 162 // 调用napi_remove_wrap从一个被包装的对象中解除包装 164 napi_remove_wrap(env, wrapped, &data);
|
H A D | napi-guidelines.md | 196 **【规则】** 使用napi_wrap接口,如果最后一个参数result传递不为nullptr,需要开发者在合适的时机调用napi_remove_wrap函数主动删除创建的napi_ref。 204 …,框架会创建一个napi_ref对象,指向js_object。此时开发者需要自己管理js_object的生命周期,即需要在合适的时机调用napi_remove_wrap删除napi_ref,这样G… 217 // 当js_object和result后续不再使用时,及时调用napi_remove_wrap释放result 219 napi_remove_wrap(env, jsobject, &nativeObjectResult);
|
H A D | napi-data-types-interfaces.md | 382 | napi_remove_wrap | 从ArkTS对象上获取之前绑定的Node-API模块对象实例,并解除绑定。 |
|
/ohos5.0/docs/en/application-dev/napi/ |
H A D | use-napi-about-class.md | 24 | napi_remove_wrap | Removes the wrapping after the native object is unwrapped from an ArkTS object… 106 ### napi_remove_wrap subsection 108 Use **napi_remove_wrap** to remove the wrapping after a native instance is unwrapped from an ArkTS … 154 // Call napi_remove_wrap to remove the wrapping. 156 napi_remove_wrap(env, wrapped, &data);
|
H A D | napi-guidelines.md | 196 …t parameter **result** is not **nullptr** in **napi_wrap()**, use **napi_remove_wrap()** at a prop… 204 … need to manage the lifecycle of **js_object**. Specifically, use **napi_remove_wrap** to delete *… 217 // When js_object and result are no longer used, call napi_remove_wrap to release result. 219 napi_remove_wrap(env, jsobject, &nativeObjectResult);
|
H A D | napi-data-types-interfaces.md | 382 | napi_remove_wrap | Removes the wrapping after the native object is unwrapped from an ArkTS object…
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/napi/common/ |
H A D | napi_class.h | 80 napi_status status = napi_remove_wrap(env, objStat, (void **)&t); in RemoveEntityOfFinal()
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/common/napi/ |
H A D | n_class.h | 76 napi_status status = napi_remove_wrap(env, objStat, (void **)&t); in RemoveEntityOfFinal()
|
/ohos5.0/foundation/filemanagement/file_api/utils/filemgmt_libn/include/ |
H A D | n_class.h | 80 napi_status status = napi_remove_wrap(env, objStat, (void **)&t); in RemoveEntityOfFinal()
|
/ohos5.0/base/update/updateservice/frameworks/js/napi/session/include/ |
H A D | napi_common_define.h | 96 napi_remove_wrap(env, jsObject, (void **) &nativeObject); in CreateJsObject()
|
/ohos5.0/docs/zh-cn/application-dev/performance/ |
H A D | develop-Native-modules-using-NAPI-safely-and-efficiently.md | 123 // 当jsobject和result后续不再使用时,及时调用napi_remove_wrap释放result 125 napi_remove_wrap(env, jsobject, result1)
|
/ohos5.0/docs/zh-cn/application-dev/reference/native-lib/ |
H A D | napi.md | 126 |FUNC|napi_remove_wrap|从js object上获取先前绑定的native对象实例,并解除绑定。|10| 444 ### napi_remove_wrap subsection
|
/ohos5.0/docs/en/application-dev/performance/ |
H A D | develop-Native-modules-using-NAPI-safely-and-efficiently.md | 123 // When the JavaScript object and result are no longer used, call napi_remove_wrap to release the r… 125 napi_remove_wrap(env, jsobject, result1)
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/kits/js/common/ |
H A D | image_napi.cpp | 503 auto status_ = napi_remove_wrap(env, thisVar, reinterpret_cast<void**>(&tmp)); in JSReleaseCallBack()
|
H A D | auxiliary_picture_napi.cpp | 364 nVal.status = napi_remove_wrap(env, nVal.thisVar, reinterpret_cast<void**>(&auxiliaryPicture)); in Release()
|
H A D | image_packer_napi.cpp | 814 status = napi_remove_wrap(env, thisVar, reinterpret_cast<void**>(&context->constructor_)); in Release()
|
H A D | picture_napi.cpp | 661 nVal.status = napi_remove_wrap(env, nVal.thisVar, reinterpret_cast<void**>(&picturenapi)); in Release()
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/kits/js/common/sendable/ |
H A D | sendable_image_source_napi.cpp | 863 status = napi_remove_wrap(env, thisVar, reinterpret_cast<void**>(&asyncContext->constructor_)); in Release()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/js/src/ |
H A D | fetch_file_result_napi.cpp | 906 status = napi_remove_wrap(env, thisVar, reinterpret_cast<void **>(&obj)); in JSClose()
|
/ohos5.0/docs/en/application-dev/reference/native-lib/ |
H A D | napi.md | 126 |FUNC|napi_remove_wrap|Removes the native instance from the JS object.|10| 442 ### napi_remove_wrap subsection
|
/ohos5.0/foundation/communication/ipc/ipc/native/src/napi_common/source/ |
H A D | napi_message_parcel_write.cpp | 1121 napi_remove_wrap(env, thisVar, reinterpret_cast<void **>(&napiParcel)); in JS_reclaim()
|
H A D | napi_remote_object.cpp | 186 status = napi_remove_wrap(env, jsRemoteObject, (void **)&createHolder); in RemoteObjectAttachCb()
|
/ohos5.0/foundation/arkui/napi/test/unittest/ |
H A D | test_napi.cpp | 1728 napi_remove_wrap(env, instanceValue, (void**)&tmpTestStr1); 2230 napi_remove_wrap(env, instanceValue, (void**)&tempTestStr1); 5948 napi_status status = napi_remove_wrap(env, obj, (void **)&testStr); 5959 napi_status status = napi_remove_wrap(env, obj, (void **)testStr); 5970 napi_status status = napi_remove_wrap(env, obj, (void **)&testStr);
|
/ohos5.0/foundation/distributedhardware/device_manager/interfaces/kits/js4.0/src/ |
H A D | native_devicemanager_js.cpp | 1884 NAPI_CALL(env, napi_remove_wrap(env, argv[0], (void**)&deviceManagerWrapper)); in ReleaseDeviceManager()
|
/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/worker/ |
H A D | worker.cpp | 2217 napi_remove_wrap(hostEnv_, thisVar, reinterpret_cast<void**>(&worker)); in ReleaseHostThreadContent()
|