Home
last modified time | relevance | path

Searched refs:deleter (Results 1 – 15 of 15) sorted by relevance

/foundation/communication/netmanager_base/utils/napi_utils/include/
Dbase_async_work.h62 auto deleter = [](Context *context) { delete context; }; in AsyncWorkCallback()
63 std::unique_ptr<Context, decltype(deleter)> context(static_cast<Context *>(data), deleter); in AsyncWorkCallback()
111 auto deleter = [](Context *context) { delete context; }; in AsyncWorkCallbackForSystem()
112 std::unique_ptr<Context, decltype(deleter)> context(static_cast<Context *>(data), deleter); in AsyncWorkCallbackForSystem()
Dmodule_template.h120 auto deleter = [](Context *context) { delete context; }; in InterfaceSync()
122 std::unique_ptr<Context, decltype(deleter)> context(text, deleter); in InterfaceSync()
/foundation/communication/netstack/utils/napi_utils/include/
Dbase_async_work.h70 auto deleter = [](Context *context) { in AsyncWorkCallback()
74 std::unique_ptr<Context, decltype(deleter)> context(static_cast<Context *>(data), deleter); in AsyncWorkCallback()
122 auto deleter = [](Context *context) { delete context; }; in AsyncWorkCallbackForSystem()
123 std::unique_ptr<Context, decltype(deleter)> context(static_cast<Context *>(data), deleter); in AsyncWorkCallbackForSystem()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/quick_fix/state/src/
Dquick_fix_delete_state.cpp32 std::unique_ptr<QuickFixDeleter> deleter = std::make_unique<QuickFixDeleter>(bundleName_); in Process() local
33 auto ret = deleter->Execute(); in Process()
/foundation/graphic/graphic_2d/rosen/modules/texgine/src/
Dbidi_processer.cpp58 auto deleter = [](UBiDi *p) {ubidi_close(p);}; in DoBidiProcess() local
59 std::unique_ptr<UBiDi, decltype(deleter)> bidi(ubidi_open(), deleter); in DoBidiProcess()
/foundation/communication/netstack/frameworks/js/napi/socket/task_queue/src/
Dtask_queue.cpp85 auto deleter = [](BaseContext *context) { delete context; }; in Callback() local
86 …std::unique_ptr<BaseContext, decltype(deleter)> context(static_cast<BaseContext *>(data), deleter); in Callback()
/foundation/communication/netstack/frameworks/js/napi/websocket/websocket_exec/src/
Dwebsocket_exec.cpp358 auto deleter = [](const int32_t *p) { delete p; }; in CreateConnectError() local
359 std::unique_ptr<int32_t, decltype(deleter)> handler(code, deleter); in CreateConnectError()
650 auto deleter = [](const int32_t *p) { delete p; }; in CreateError() local
651 std::unique_ptr<int32_t, decltype(deleter)> handler(code, deleter); in CreateError()
663 auto deleter = [](const OnOpenClosePara *p) { delete p; }; in CreateOpenPara() local
664 std::unique_ptr<OnOpenClosePara, decltype(deleter)> handler(para, deleter); in CreateOpenPara()
677 auto deleter = [](const OnOpenClosePara *p) { delete p; }; in CreateClosePara() local
678 std::unique_ptr<OnOpenClosePara, decltype(deleter)> handler(para, deleter); in CreateClosePara()
691 auto deleter = [](const OnMessagePara *p) { delete p; }; in CreateMessagePara() local
692 std::unique_ptr<OnMessagePara, decltype(deleter)> handler(para, deleter); in CreateMessagePara()
/foundation/communication/netmanager_base/frameworks/js/napi/network/observer/src/
Dnetwork_observer.cpp56 auto deleter = [](NetworkType *t) { delete t; }; in MakeNetworkResponse() local
57 std::unique_ptr<NetworkType, decltype(deleter)> netType(data, deleter); in MakeNetworkResponse()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/quick_fix/
Dquick_fixer.cpp78 std::unique_ptr<IQuickFix> deleter = std::make_unique<QuickFixDeleter>(bundleName); in DeleteQuickFix() local
79 auto ret = deleter->Execute(); in DeleteQuickFix()
Dquick_fix_boot_scanner.cpp218 std::unique_ptr<IQuickFix> deleter = std::make_unique<QuickFixDeleter>(bundleName); in ReprocessQuickFix() local
219 ret = deleter->Execute(); in ReprocessQuickFix()
/foundation/multimedia/histreamer/engine/plugin/plugins/source/stream_source/
Dstream_source_plugin.cpp120 auto deleter = [this](uint8_t* ptr) { FALSE_LOG(stream_->QueueEmptyBuffer(ptr)); }; in WrapDataBuffer() local
121 std::shared_ptr<uint8_t> address = std::shared_ptr<uint8_t>(dataBuffer->GetAddress(), deleter); in WrapDataBuffer()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_quick_fix_test/
Dbms_bundle_quick_fix_test.cpp1404 auto deleter = GetQuickFixDeleter(); variable
1405 EXPECT_FALSE(deleter == nullptr);
1406 if (deleter != nullptr) {
1407 ErrCode ret = deleter->RemoveDeployingInfo(BUNDLE_NAME);
1422 auto deleter = GetQuickFixDeleter(); variable
1423 EXPECT_FALSE(deleter == nullptr);
1424 if (deleter != nullptr) {
1425 ErrCode ret = deleter->RemoveDeployingInfo(BUNDLE_NAME);
1442 auto deleter = GetQuickFixDeleter(); variable
1443 EXPECT_FALSE(deleter == nullptr);
[all …]
/foundation/communication/netstack/frameworks/js/napi/socket/socket_exec/src/
Dsocket_exec.cpp140 auto deleter = [](const int32_t *p) { delete p; }; in MakeError() local
141 std::unique_ptr<int32_t, decltype(deleter)> handler(code, deleter); in MakeError()
249 auto deleter = [](const TcpConnection *p) { delete p; }; in MakeTcpConnectionMessage() local
250 std::unique_ptr<TcpConnection, decltype(deleter)> handler(netConnection, deleter); in MakeTcpConnectionMessage()
303 auto deleter = [](const MessageData *p) { delete p; }; in MakeMessage() local
304 std::unique_ptr<MessageData, decltype(deleter)> handler(messageData, deleter); in MakeMessage()
702 auto deleter = [](char *s) { free(reinterpret_cast<void *>(s)); }; in PollRecvData() local
703 …std::unique_ptr<char, decltype(deleter)> buf(reinterpret_cast<char *>(malloc(bufferSize)), deleter in PollRecvData()
/foundation/arkui/ace_engine/frameworks/core/components_ng/common_napi_utils/
Dcommon_napi_utils.cpp171 auto deleter = [](char* s) { free(reinterpret_cast<void*>(s)); }; in GetStringFromValueUtf8() local
176 std::unique_ptr<char, decltype(deleter)> str(strTmp, deleter); in GetStringFromValueUtf8()
/foundation/communication/netstack/utils/napi_utils/src/
Dnapi_utils.cpp235 auto deleter = [](char *s) { free(reinterpret_cast<void *>(s)); }; in GetStringFromValueUtf8() local
236 …std::unique_ptr<char, decltype(deleter)> str(static_cast<char *>(malloc(stringLength + 1)), delete… in GetStringFromValueUtf8()