Home
last modified time | relevance | path

Searched refs:strSize (Results 1 – 21 of 21) sorted by relevance

/ohos5.0/drivers/peripheral/display/buffer/test/moduletest/
H A Ddisplay_buffer_mt.cpp53 int strSize = strlen(VERIFY_MSG) + 1; in WriteBuffer() local
61 for (; i < handle.size - strSize;) { in WriteBuffer()
67 i += strSize; in WriteBuffer()
76 __func__, __LINE__, handle.size, strSize); in WriteBuffer()
78 for (i = 0; i < handle.size - SIZE_TIMES * strSize; i = i + strSize) { in WriteBuffer()
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.33/
H A Dchangelogs-global.md72 size_t strSize;
74 napi_get_value_string_utf8(env, argv[1], strBuf, sizeof(strBuf), &strSize);
75 std::string filename(strBuf, strSize); // 编译通过
95 size_t strSize;
97 napi_get_value_string_utf8(env, argv[1], strBuf, sizeof(strBuf), &strSize);
98 std::string filename(strBuf, strSize); // 编译失败
133 size_t strSize;
135 napi_get_value_string_utf8(env, argv[1], strBuf, sizeof(strBuf), &strSize);
136 std::string filename(strBuf, strSize); // 编译通过
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/base/
H A Ddfx_assist.cpp102 jerry_size_t strSize = 0; in DumpErrorMessage() local
104 strSize = jerry_get_utf8_string_size(itemVal); in DumpErrorMessage()
107 if (strSize >= stackMsgMaxLength) { in DumpErrorMessage()
110 … jerry_size_t stringEnd = jerry_string_to_utf8_char_buffer(itemVal, errStrBuffer, strSize); in DumpErrorMessage()
/ohos5.0/docs/zh-cn/application-dev/napi/
H A Drawfile-guidelines.md110 size_t strSize;
112 napi_get_value_string_utf8(env, argv[1], strBuf, sizeof(strBuf), &strSize);
113 std::string dirName(strBuf, strSize);
174 size_t strSize;
176 napi_get_value_string_utf8(env, argv[1], strBuf, sizeof(strBuf), &strSize);
177 std::string filename(strBuf, strSize);
258 size_t strSize;
260 napi_get_value_string_utf8(env, argv[1], strBuf, sizeof(strBuf), &strSize);
261 std::string filename(strBuf, strSize);
304 size_t strSize;
[all …]
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_5.0.0.33/
H A Dchangelogs-global.md72 size_t strSize;
74 napi_get_value_string_utf8(env, argv[1], strBuf, sizeof(strBuf), &strSize);
75 std::string filename(strBuf, strSize); // Compilation is successful.
95 size_t strSize;
97 napi_get_value_string_utf8(env, argv[1], strBuf, sizeof(strBuf), &strSize);
98 std::string filename(strBuf, strSize); // Compilation fails.
133 size_t strSize;
135 napi_get_value_string_utf8(env, argv[1], strBuf, sizeof(strBuf), &strSize);
136 std::string filename(strBuf, strSize); // Compilation is successful.
/ohos5.0/docs/en/application-dev/napi/
H A Drawfile-guidelines.md111 size_t strSize;
113 napi_get_value_string_utf8(env, argv[1], strBuf, sizeof(strBuf), &strSize);
114 std::string dirName(strBuf, strSize);
175 size_t strSize;
177 napi_get_value_string_utf8(env, argv[1], strBuf, sizeof(strBuf), &strSize);
178 std::string filename(strBuf, strSize);
259 size_t strSize;
261 napi_get_value_string_utf8(env, argv[1], strBuf, sizeof(strBuf), &strSize);
262 std::string filename(strBuf, strSize);
305 size_t strSize;
[all …]
/ohos5.0/docs/zh-cn/application-dev/media/image/
H A Dimage-decoding-native.md109 size_t strSize;
112 napi_get_value_string_utf8(env, args[1], srcBuf, sizeof(srcBuf), &strSize);
199 size_t strSize;
202 napi_get_value_string_utf8(env, args[1], srcBuf, sizeof(srcBuf), &strSize);
/ohos5.0/foundation/ability/ability_runtime/test/moduletest/ability_test/
H A Ddata_ability_helper_module_test.cpp250 int strSize = 7; variable
252 str.resize(strSize);
254 fgets(&str[0], strSize, file);
292 int strSize = 7; variable
294 str.resize(strSize);
296 fgets(&str[0], strSize, file);
/ohos5.0/commonlibrary/ets_utils/js_api_module/buffer/
H A Dnative_module_buffer.cpp64 size_t strSize = 0; in GetStringUtf8() local
65 NAPI_CALL(env, napi_get_value_string_utf8(env, strValue, nullptr, 0, &strSize)); in GetStringUtf8()
66 str.reserve(strSize + 1); in GetStringUtf8()
67 str.resize(strSize); in GetStringUtf8()
68 … napi_get_value_string_utf8(env, strValue, const_cast<char *>(str.data()), strSize + 1, &strSize)); in GetStringUtf8()
71 str.resize(strSize); in GetStringUtf8()
79 size_t strSize = 0; in GetStringASCII() local
80 NAPI_CALL(env, napi_get_value_string_latin1(env, strValue, nullptr, 0, &strSize)); in GetStringASCII()
81 str.reserve(strSize + 1); in GetStringASCII()
82 str.resize(strSize); in GetStringASCII()
[all …]
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/test/unittest/common/
H A Ddfx_tdd_test.cpp628 jerry_size_t strSize = 0; in DfxTest002() local
630 strSize = jerry_get_utf8_string_size(itemVal); in DfxTest002()
632 jerry_size_t stringEnd = jerry_string_to_utf8_char_buffer(itemVal, errStrBuffer, strSize); in DfxTest002()
/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/src/
H A Dwidget_adapter.cpp126 auto strSize = tempPath.size(); in UpdateShaderPath() local
127 if (index != std::string::npos && index != (strSize - 1)) { in UpdateShaderPath()
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/download/network_client/
H A Dhttp_curl_client.cpp57 unsigned long strSize = sizeof(arr) / sizeof(arr[0]); in InsertCharBefore() local
58 std::string str(arr, strSize); in InsertCharBefore()
65 length += (strSize - 1); in InsertCharBefore()
67 pos = output.find(from, pos + strSize); in InsertCharBefore()
/ohos5.0/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/
H A Drdb_double_write_test.cpp930 int strSize = 1024 * 100; variable
932 Insert(id, count, false, strSize);
974 int strSize = 1024 * 100; variable
976 Insert(id, count, false, strSize);
1024 int strSize = 1024 * 200; variable
1026 Insert(id, count, false, strSize);
1063 int strSize = 1024 * 200; variable
1065 Insert(id, count, false, strSize);
1077 Insert(id, count, false, strSize);
/ohos5.0/foundation/communication/netstack/utils/common_utils/src/
H A Dnetstack_common_utils.cpp242 unsigned long strSize = sizeof(arr) / sizeof(arr[0]); in InsertCharBefore() local
243 std::string str(arr, strSize); in InsertCharBefore()
250 length += (strSize - 1); in InsertCharBefore()
252 pos = output.find(from, pos + strSize); in InsertCharBefore()
/ohos5.0/docs/en/application-dev/media/image/
H A Dimage-decoding-native.md109 size_t strSize;
112 napi_get_value_string_utf8(env, args[1], srcBuf, sizeof(srcBuf), &strSize);
199 size_t strSize;
202 napi_get_value_string_utf8(env, args[1], srcBuf, sizeof(srcBuf), &strSize);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/
H A Drs_system_properties.cpp765 static auto strSize = targetStr.size(); in FindNodeInTargetList() local
766 if (strSize == 0) { in FindNodeInTargetList()
774 strSize = targetStr.size(); in FindNodeInTargetList()
776 for (std::string::size_type i = 0; i < strSize; i++) { in FindNodeInTargetList()
778 if (pos >= strSize) { in FindNodeInTargetList()
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/
H A Dbundle_util.cpp347 int32_t strSize = 0; in Strscat() local
352 strSize += strlen(str[i]); in Strscat()
355 char *outStr = reinterpret_cast<char *>(AdapterMalloc((strSize + 1) * sizeof(char))); in Strscat()
364 if (memcpy_s(pos, strSize + 1 - count, str[i], size) != EOK) { in Strscat()
/ohos5.0/base/security/device_security_level/oem_property/common/
H A Ddslm_credential_utils.c222 size_t strSize = strlen(credentialString) + 1; in InitCredential() local
223 credCb->saved = (char *)MALLOC(strSize); in InitCredential()
227 if (strcpy_s(credCb->saved, strSize, credentialString) != EOK) { in InitCredential()
/ohos5.0/foundation/multimedia/media_lite/services/recorder_lite/server/src/
H A Drecorder_service.cpp187 size_t strSize; in Dispatch() local
188 char *path = (char *)ReadString(req, &strSize); in Dispatch()
/ohos5.0/commonlibrary/ets_utils/js_util_module/util/
H A Dnative_module_util.cpp147 size_t strSize = str.size(); in FormatString() local
148 for (size_t i = 0; i < strSize; ++i) { in FormatString()
149 if (str[i] == '%' && (i + 1 < strSize && temp.find(str[i + 1]) != std::string::npos)) { in FormatString()
168 } else if (str[i] == '%' && (i + 1 < strSize && str[i + 1] == '%')) { in FormatString()
/ohos5.0/foundation/arkui/napi/test/unittest/
H A Dtest_napi.cpp398 size_t strSize = 0; variable
399 napi_get_value_string_latin1(env, result, nullptr, 0, &strSize);
400 str.reserve(strSize + 1);
401 str.resize(strSize);
402 napi_get_value_string_latin1(env, result, str.data(), strSize + 1, &strSize);
8740 size_t strSize = 0; variable
8741 res = napi_get_value_string_latin1(env, stringValue, nullptr, 0, &strSize);
8790 size_t strSize = 0; variable
8791 res = napi_get_value_string_utf8(env, stringValue, nullptr, 0, &strSize);
8840 size_t strSize = 0; variable
[all …]