Searched refs:sendable (Results 1 - 8 of 8) sorted by relevance
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/src/ |
H A D | napi_preferences_observer.cpp | 31 AsyncCall([key](napi_env env, bool sendable, int &argc, napi_value *argv) { in OnChange() 33 argv[0] = sendable ? Utils::ConvertToSendable(env, key) : JSUtils::Convert2JSValue(env, key); in OnChange() 40 AsyncCall([records](napi_env env, bool sendable, int &argc, napi_value *argv) { in OnChange() 47 sendable ? napi_create_sendable_object_with_properties(env, descriptors.size(), descriptors.data(), &result) in OnChange()
|
H A D | uv_queue.cpp | 37 void UvQueue::AsyncCall(NapiCallbackGetter getter, NapiArgsGenerator genArgs, bool sendable) in AsyncCall() argument 48 work->data = new (std::nothrow) UvEntry{ env_, getter, std::move(genArgs), sendable }; in AsyncCall() 82 entry->args(entry->env, entry->sendable, argc, argv); in Work()
|
H A D | js_observer.cpp | 19 JSObserver::JSObserver(std::shared_ptr<UvQueue> uvQueue, napi_value callback, bool sendable) in JSObserver() argument 20 : uvQueue_(uvQueue), sendabel_(sendable) in JSObserver()
|
H A D | js_common_utils.cpp | 328 napi_value JSUtils::JsonParse(napi_env env, const std::string &inStr, bool sendable) in JsonParse() argument 342 napi_get_named_property(env, json, sendable ? GLOBAL_PARSE_SENDABLE : GLOBAL_PARSE, &parse) == napi_ok, in JsonParse()
|
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/include/ |
H A D | uv_queue.h | 26 using NapiArgsGenerator = std::function<void(napi_env env, bool sendable, int& argc, napi_value* argv)>; 32 void AsyncCall(NapiCallbackGetter getter, NapiArgsGenerator genArgs = NapiArgsGenerator(), bool sendable = false); 39 bool sendable; member
|
H A D | napi_preferences_observer.h | 29 JSPreferencesObserver(std::shared_ptr<UvQueue> uvQueue, napi_value callback, bool sendable = false);
|
H A D | js_observer.h | 25 JSObserver(std::shared_ptr<UvQueue> uvQueue, napi_value callback, bool sendable);
|
H A D | js_common_utils.h | 83 napi_value JsonParse(napi_env env, const std::string &inStr, bool sendable = false);
|
Completed in 3 milliseconds