Home
last modified time | relevance | path

Searched refs:pathLen (Results 1 - 14 of 14) sorted by relevance

/foundation/arkui/napi/utils/platform/windows/
H A Dfile.cpp28 size_t pathLen = strlen(path); in RealPath() local
29 if (pathLen == 0 || pathLen > PATH_MAX) { in RealPath()
/foundation/arkui/napi/utils/platform/unix_like/
H A Dfile.cpp28 size_t pathLen = strlen(path); in RealPath() local
29 if (pathLen == 0 || pathLen > PATH_MAX) { in RealPath()
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/
H A Dgt_extractor_util.cpp145 uint32_t pathLen = ReadInt(fp); in ExtractFileAttr() local
146 if (pathLen == UINT_MAX) { in ExtractFileAttr()
150 if ((*relativeFilePath = reinterpret_cast<char *>(ReadString(fp, pathLen))) == nullptr) { in ExtractFileAttr()
164 uint8_t GtExtractorUtil::ExtractFileAttr(int32_t fp, char **fileName, uint32_t &pathLen, uint64_t &fileSize) in ExtractFileAttr() argument
177 pathLen = ReadInt(fp); in ExtractFileAttr()
178 if (pathLen == UINT_MAX) { in ExtractFileAttr()
182 int32_t ret = lseek(fp, pathLen, SEEK_CUR); in ExtractFileAttr()
H A Dgt_bundle_extractor.cpp96 uint32_t pathLen = 0; in ExtractHapProfile() local
105 if (GtExtractorUtil::ExtractFileAttr(fp, &fileName, pathLen, fileSize) != ERR_OK) { in ExtractHapProfile()
112 if (pathLen == 0 && (strcmp(fileName, PROFILE_NAME) == 0)) { in ExtractHapProfile()
131 index = index + INT_LENGTH + fileNameLen + INT_LENGTH + pathLen + LONG_LENGTH + fileSize; in ExtractHapProfile()
/foundation/filemanagement/storage_service/services/storage_daemon/libfscrypt/src/
H A Dkey_control.c207 char pathLen = strlen(keyPath) + strlen(PATH_FSCRYPT_VER) + 1; in KeyCtrlLoadVersion() local
208 char *path = (char *)malloc(pathLen); in KeyCtrlLoadVersion()
214 if (strncat_s(path, pathLen - strlen(PATH_FSCRYPT_VER), keyPath, strlen(keyPath)) != EOK) { in KeyCtrlLoadVersion()
219 if (strncat_s(path, pathLen, PATH_FSCRYPT_VER, strlen(PATH_FSCRYPT_VER)) != EOK) { in KeyCtrlLoadVersion()
H A Dfscrypt_control.c236 static int SpliceKeyPath(const char *path, size_t pathLen, in SpliceKeyPath() argument
242 size_t bufMax = pathLen + nameLen + 1; in SpliceKeyPath()
250 int ret = strncat_s(tmpBuf, bufMax, path, pathLen); in SpliceKeyPath()
/foundation/distributeddatamgr/preferences/frameworks/js/napi/storage/src/
H A Dnapi_storage_helper.cpp63 size_t pathLen = 0; in ParseString() local
64 napi_get_value_string_utf8(env, value, path, PATH_MAX, &pathLen); in ParseString()
118 size_t pathLen = 0; in GetInputPath() local
119 ret = napi_get_value_string_utf8(env, args[0], path, PATH_MAX, &pathLen); in GetInputPath()
H A Dnapi_storage.cpp136 size_t pathLen = 0; in New() local
137 napi_status status = napi_get_value_string_utf8(env, args[0], path, PATH_MAX, &pathLen); in New()
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/include/
H A Dgt_extractor_util.h27 static uint8_t ExtractFileAttr(int32_t fp, char **fileName, uint32_t &pathLen, uint64_t &fileSize);
/foundation/arkui/ace_engine_lite/frameworks/src/core/base/
H A Dproduct_adapter.cpp354 size_t pathLen = strlen(appDataRoot); in ConfigPrivateDataRootPath() local
355 if (pathLen == 0 || pathLen >= UINT8_MAX) { in ConfigPrivateDataRootPath()
/foundation/communication/netstack/frameworks/js/napi/websocket/websocket_exec/include/
H A Dwebsocket_exec.h46 char *path, size_t pathLen, int *port);
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/extension/
H A Dextension_util.cpp397 size_t pathLen = 0; in ConvertAssetLeft() local
398 status = OhCloudExtCloudAssetGetLocalPath(asset, &path, reinterpret_cast<unsigned int *>(&pathLen)); in ConvertAssetLeft()
402 dbAsset.path = std::string(reinterpret_cast<char *>(path), pathLen); in ConvertAssetLeft()
/foundation/filemanagement/app_file_service/interfaces/kits/js/file_uri/
H A Dfile_uri_n_exporter.cpp191 size_t pathLen = uri.GetPath().size(); in NormalizeUri() local
192 if (pathLen == 0) { in NormalizeUri()
201 if (left != pathLen) { in NormalizeUri()
/foundation/communication/netstack/frameworks/js/napi/websocket/websocket_exec/src/
H A Dwebsocket_exec.cpp255 size_t addressLen, char *path, size_t pathLen, int *port) in ParseUrl()
278 if (strcpy_s(path, pathLen, tempPath) < 0) { in ParseUrl()
254 ParseUrl(ConnectContext *context, char *protocol, size_t protocolLen, char *address, size_t addressLen, char *path, size_t pathLen, int *port) ParseUrl() argument

Completed in 10 milliseconds