Home
last modified time | relevance | path

Searched refs:bufsize (Results 1 – 4 of 4) sorted by relevance

/base/hiviewdfx/hiappevent/frameworks/js/napi/include/
Dnapi_util.h44 std::string GetString(const napi_env env, const napi_value value, size_t bufsize = 100); // 100 mea…
45 …tStrings(const napi_env env, const napi_value arr, std::vector<std::string>& strs, size_t bufsize);
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
Dnapi_util.cpp201 std::string GetString(const napi_env env, const napi_value value, size_t bufsize) in GetString() argument
203 char strValue[bufsize + 1]; // 1 for '\0' in GetString()
205 if (napi_get_value_string_utf8(env, value, strValue, bufsize, &result) != napi_ok) { in GetString()
212 …etStrings(const napi_env env, const napi_value arr, std::vector<std::string>& strs, size_t bufsize) in GetStrings() argument
220 strs.push_back(GetString(env, element, bufsize)); in GetStrings()
/base/update/updateservice/test/unittest/update_client/
Dclient_stub.cpp301 size_t bufsize, size_t* result) in napi_get_value_string_utf8() argument
308 (void)memcpy_s(buf, bufsize, testValue->strValue.data(), testValue->strValue.size()); in napi_get_value_string_utf8()
311 testValue->strValue.c_str(), bufsize, testValue->strValue.size()); in napi_get_value_string_utf8()
/base/theme/wallpaper_mgr/services/src/
Dwallpaper_service.cpp575 int32_t bufsize = read(fd, paperBuf, length); in SetWallpaperByMap() local
576 if (bufsize <= 0) { in SetWallpaperByMap()