Home
last modified time | relevance | path

Searched refs:res (Results 1 - 19 of 19) sorted by relevance

/napi_generator/examples/napitutorials/entry/src/main/cpp/ncpp/cjsoncase/
H A Dcjsoncase.cpp31 napi_value res; in cJSONVersion() local
32 napi_create_string_utf8(env, version, strlen(version), &res); in cJSONVersion()
34 return res; in cJSONVersion()
H A Dcjsoncommon.cpp32 std::string res = "Failed to " + myInfo + " em = " + errorMessage + in getErrMessage() local
35 napi_throw_error(env, NULL, res.c_str()); in getErrMessage()
/napi_generator/examples/napitutorials/entry/src/main/cpp/javascriptapi/jsabstractops/
H A Dnapicoercetostring.cpp47 std::string res = "Failed to coerce to string. em = " + std::string(errorMessage) + in testNapiCoerceToString() local
50 napi_throw_error(env, NULL, res.c_str()); in testNapiCoerceToString()
59 std::string res = "Expected a string, got " + std::to_string(resultType); in testNapiCoerceToString() local
60 napi_throw_error(env, NULL, res.c_str()); in testNapiCoerceToString()
H A Dnapicoercetoobject.cpp47 std::string res = "Failed to coerce to object. em = " + std::string(errorMessage) + in testNapiCoerceToObject() local
50 napi_throw_error(env, NULL, res.c_str()); in testNapiCoerceToObject()
59 std::string res = "Expected an object, got " + std::to_string(resultType); in testNapiCoerceToObject() local
60 napi_throw_error(env, NULL, res.c_str()); in testNapiCoerceToObject()
H A Dnapicoercetonumber.cpp47 std::string res = "Failed to coerce to number. em = " + std::string(errorMessage) + in testNapiCoerceToNumber() local
50 napi_throw_error(env, NULL, res.c_str()); in testNapiCoerceToNumber()
59 std::string res = "Expected a number, got " + std::to_string(resultType); in testNapiCoerceToNumber() local
60 napi_throw_error(env, NULL, res.c_str()); in testNapiCoerceToNumber()
H A Dnapicoercetobool.cpp47 std::string res = "Failed to coerce to bool. em = " + std::string(errorMessage) + in testNapiCoerceToBool() local
50 napi_throw_error(env, NULL, res.c_str()); in testNapiCoerceToBool()
59 std::string res = "Expected a boolean, got " + std::to_string(resultType); in testNapiCoerceToBool() local
60 napi_throw_error(env, NULL, res.c_str()); in testNapiCoerceToBool()
/napi_generator/src/cli/dts2cpp/src/gen/analyze/
H A Dfunction.js171 let res = '';
175 res += regs1;
180 let interfaceBody = res;
235 let res = analyzeFuncNoNameInterface(data, values, results);
239 if (res) {
240 tmp = analyzeParams(name, res.values);
266 v = getFuncParaType(v, res.interfaceName, data, results);
/napi_generator/src/cli/dts2ets/appCodeGen/src/analyze/
H A Dfunction.js169 let res = '';
173 res += regs1;
178 let interfaceBody = res;
233 let res = analyzeFuncNoNameInterface(data, values, results);
237 if (res) {
238 tmp = analyzeParams(name, res.values);
264 v = getFuncParaType(v, res.interfaceName, data, results);
/napi_generator/examples/napitutorials/entry/src/main/cpp/javascriptapi/jsobjectwrap/
H A Dnapiwrap.cpp59 std::string res = "Expected a string, got " + std::to_string(resultType); in testNapiWrap() local
60 napi_throw_error(env, NULL, res.c_str()); in testNapiWrap()
/napi_generator/examples/napitutorials/entry/src/main/cpp/nodeapi/datatypes/
H A Dnapithreadsafefuncall.cpp75 std::string res = "Failed to create threadsafe function em = " + std::string(errorMessage) + in setThreadsafefuncall() local
78 napi_throw_error(env, NULL, res.c_str()); in setThreadsafefuncall()
H A Dnapithreadsafefunc.cpp75 std::string res = "Failed to create threadsafe function em = " + std::string(errorMessage) + in setThreadsafefunc() local
78 napi_throw_error(env, NULL, res.c_str()); in setThreadsafefunc()
H A Dnapiextendederrorinfo.cpp58 std::string res = "Failed to create threadsafe function em = " + std::string(errorMessage) + in testNapiExterrinfo() local
61 napi_throw_error(env, NULL, res.c_str()); in testNapiExterrinfo()
H A Dnapithreadsafefuncrel.cpp76 std::string res = "Failed to create threadsafe function em = " + std::string(errorMessage) + in setThreadsafefuncrel() local
79 napi_throw_error(env, NULL, res.c_str()); in setThreadsafefuncrel()
/napi_generator/src/cli/dts2cpp/src/gen/tools/
H A Dcommon.js191 let res = '';
195 res += regs1;
197 return res;
204 let res = type.substring(preStrLen, type.length - 1);
205 return res;
212 let res = type.substring(preStrLen, type.length - 1);
213 return res;
/napi_generator/src/cli/dts2ets/appCodeGen/src/tools/
H A Dcommon.js190 let res = '';
194 res += regs1;
196 return res;
203 let res = type.substring(preStrLen, type.length - 1);
204 return res;
211 let res = type.substring(preStrLen, type.length - 1);
212 return res;
/napi_generator/examples/napitutorials/entry/src/main/cpp/javascriptapi/
H A Dcommon.cpp29 std::string res = "Failed to " + myInfo + " em = " + std::to_string(extended_error_info->engine_error_code) + in getErrMsg() local
32 napi_throw_error(env, NULL, res.c_str()); in getErrMsg()
/napi_generator/src/cli/h2dtscpp/src/src/tools/
H A DcommonTemplete.js71 std::string res = "Failed to " + myInfo + " em = " + errorMessage +
74 napi_throw_error(env, NULL, res.c_str());
/napi_generator/src/cli/h2sa/src/gen/
H A Dgenerate.js589 let res = genFunctionCode(classInfo);
590 files.iServiceH = replaceAll(files.iServiceH, '[funcEnum]', res.funcEnumStr);
591 files.iServiceH = replaceAll(files.iServiceH, '[functions]', res.iServiceFuncH);
592 files.proxyH = replaceAll(files.proxyH, '[functions]', res.proxyFuncH);
593 files.stubH = replaceAll(files.stubH, '[innerFuncDef]', res.stubInnerFuncH);
594 files.serviceH = replaceAll(files.serviceH, '[functions]', res.proxyFuncH);
595 files.proxyCpp = replaceAll(files.proxyCpp, '[remoteFuncImpl]', res.proxyFuncCpp);
596 files.stubCpp = replaceAll(files.stubCpp, '[innerFuncMap]', res.stubInnerFuncMap);
597 files.stubCpp = replaceAll(files.stubCpp, '[innerFuncImpl]', res.stubInnerFuncCpp);
598 files.serviceCpp = replaceAll(files.serviceCpp, '[serviceFuncImpl]', res
[all...]
/napi_generator/examples/napitutorials/entry/src/main/cpp/include/
H A Dcommon.h100 extern bool CreateArrayBuffer(napi_env env, uint8_t *src, size_t srcLen, napi_value *res);

Completed in 7 milliseconds