Home
last modified time | relevance | path

Searched refs:stdOutInfo_ (Results 1 – 2 of 2) sorted by relevance

/commonlibrary/ets_utils/js_sys_module/process/
Djs_childprocess.cpp149 if (stdOutInfo_ == nullptr) { in GetOutput()
155 NAPI_CALL(env, napi_create_promise(env, &stdOutInfo_->deferred, &stdOutInfo_->promise)); in GetOutput()
158 size_t bufferSize = stdOutInfo_->stdData.size() + 1; in GetOutput()
160 if (memcpy_s(data, bufferSize, reinterpret_cast<const void*>(stdOutInfo_->stdData.c_str()), in GetOutput()
161 stdOutInfo_->stdData.size()) != EOK) { in GetOutput()
163 NAPI_CALL(env, napi_delete_async_work(env, stdOutInfo_->worker)); in GetOutput()
171 NAPI_CALL(env, napi_resolve_deferred(env, stdOutInfo_->deferred, result)); in GetOutput()
172 return stdOutInfo_->promise; in GetOutput()
245 stdOutInfo_ = new StdInfo(); in CreateWorker()
246 if (stdOutInfo_ == nullptr) { in CreateWorker()
[all …]
Djs_childprocess.h153 StdInfo* stdOutInfo_ = nullptr; variable