Home
last modified time | relevance | path

Searched refs:napi_remove_wrap (Results 1 – 25 of 30) sorted by relevance

12

/ohos5.0/docs/zh-cn/application-dev/napi/
H A Duse-napi-about-class.md24 | napi_remove_wrap | 从ArkTS对象上获取之前绑定的Node-API模块对象实例,并解除绑定。 |
110 ### napi_remove_wrap subsection
162 // 调用napi_remove_wrap从一个被包装的对象中解除包装
164 napi_remove_wrap(env, wrapped, &data);
H A Dnapi-guidelines.md196 **【规则】** 使用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 Dnapi-data-types-interfaces.md382 | napi_remove_wrap | 从ArkTS对象上获取之前绑定的Node-API模块对象实例,并解除绑定。 |
/ohos5.0/docs/en/application-dev/napi/
H A Duse-napi-about-class.md24 | 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 Dnapi-guidelines.md196 …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 Dnapi-data-types-interfaces.md382 | 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 Dnapi_class.h80 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 Dn_class.h76 napi_status status = napi_remove_wrap(env, objStat, (void **)&t); in RemoveEntityOfFinal()
/ohos5.0/foundation/filemanagement/file_api/utils/filemgmt_libn/include/
H A Dn_class.h80 napi_status status = napi_remove_wrap(env, objStat, (void **)&t); in RemoveEntityOfFinal()
/ohos5.0/base/update/updateservice/frameworks/js/napi/session/include/
H A Dnapi_common_define.h96 napi_remove_wrap(env, jsObject, (void **) &nativeObject); in CreateJsObject()
/ohos5.0/docs/zh-cn/application-dev/performance/
H A Ddevelop-Native-modules-using-NAPI-safely-and-efficiently.md123 // 当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 Dnapi.md126 |FUNC|napi_remove_wrap|从js object上获取先前绑定的native对象实例,并解除绑定。|10|
444 ### napi_remove_wrap subsection
/ohos5.0/docs/en/application-dev/performance/
H A Ddevelop-Native-modules-using-NAPI-safely-and-efficiently.md123 // 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 Dimage_napi.cpp503 auto status_ = napi_remove_wrap(env, thisVar, reinterpret_cast<void**>(&tmp)); in JSReleaseCallBack()
H A Dauxiliary_picture_napi.cpp364 nVal.status = napi_remove_wrap(env, nVal.thisVar, reinterpret_cast<void**>(&auxiliaryPicture)); in Release()
H A Dimage_packer_napi.cpp814 status = napi_remove_wrap(env, thisVar, reinterpret_cast<void**>(&context->constructor_)); in Release()
H A Dpicture_napi.cpp661 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 Dsendable_image_source_napi.cpp863 status = napi_remove_wrap(env, thisVar, reinterpret_cast<void**>(&asyncContext->constructor_)); in Release()
/ohos5.0/foundation/multimedia/media_library/frameworks/js/src/
H A Dfetch_file_result_napi.cpp906 status = napi_remove_wrap(env, thisVar, reinterpret_cast<void **>(&obj)); in JSClose()
/ohos5.0/docs/en/application-dev/reference/native-lib/
H A Dnapi.md126 |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 Dnapi_message_parcel_write.cpp1121 napi_remove_wrap(env, thisVar, reinterpret_cast<void **>(&napiParcel)); in JS_reclaim()
H A Dnapi_remote_object.cpp186 status = napi_remove_wrap(env, jsRemoteObject, (void **)&createHolder); in RemoteObjectAttachCb()
/ohos5.0/foundation/arkui/napi/test/unittest/
H A Dtest_napi.cpp1728 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 Dnative_devicemanager_js.cpp1884 NAPI_CALL(env, napi_remove_wrap(env, argv[0], (void**)&deviceManagerWrapper)); in ReleaseDeviceManager()
/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/worker/
H A Dworker.cpp2217 napi_remove_wrap(hostEnv_, thisVar, reinterpret_cast<void**>(&worker)); in ReleaseHostThreadContent()

12