/base/hiviewdfx/hilog_lite/frameworks/js/builtin/src/ |
D | hilog_realloc.cpp | 21 void *HilogRealloc::Realloc(void *ptr, size_t size, size_t srcSize) in Realloc() argument 26 if (srcSize >= size) { in Realloc() 37 if (srcSize > 0) { in Realloc() 38 memcpy_s(newPtr, size, ptr, srcSize); in Realloc()
|
/base/security/code_signature/interfaces/innerkits/common/include/ |
D | byte_buffer.h | 54 bool CopyFrom(const uint8_t *srcData, uint32_t srcSize) in CopyFrom() argument 59 if (!Resize(srcSize)) { in CopyFrom() 62 if (memcpy_s(data.get(), size, srcData, srcSize) != EOK) { in CopyFrom() 68 bool PutData(uint32_t pos, const uint8_t *srcData, uint32_t srcSize) in PutData() argument 73 if (memcpy_s(data.get() + pos, size - pos, srcData, srcSize) != EOK) { in PutData()
|
/base/security/device_auth/deps_adapter/os_adapter/impl/src/liteos/mini/ |
D | hc_file_posix.c | 148 int HcFileWrite(FileHandle file, const void *src, int srcSize) in HcFileWrite() argument 151 if (fp == -1 || srcSize < 0 || src == NULL) { in HcFileWrite() 157 LOGI("[OS]: file write enter. [OriSize]: %d", srcSize); in HcFileWrite() 158 while (total < srcSize) { in HcFileWrite() 159 int writeCount = write(fp, srcBuffer + total, srcSize - total); in HcFileWrite() 160 if (writeCount < 0 || writeCount > (srcSize - total)) { in HcFileWrite()
|
D | hc_file.c | 83 int HcFileWrite(FileHandle file, const void *src, int srcSize) in HcFileWrite() argument 86 if (fp == HAL_FAILED || srcSize < 0 || src == NULL) { in HcFileWrite() 89 int ret = UtilsFileWrite(fp, src, srcSize); in HcFileWrite()
|
/base/security/device_auth/deps_adapter/os_adapter/impl/src/linux/ |
D | hc_file.c | 136 int HcFileWrite(FileHandle file, const void *src, int srcSize) in HcFileWrite() argument 139 if (fp == NULL || srcSize < 0 || src == NULL) { in HcFileWrite() 149 LOGI("[OS]: file write enter. [OriSize]: %d", srcSize); in HcFileWrite() 150 while (total < srcSize) { in HcFileWrite() 151 int writeCount = fwrite(srcBuffer + total, 1, srcSize - total, fp); in HcFileWrite()
|
/base/global/i18n_lite/frameworks/i18n/src/ |
D | locale_info.cpp | 210 …ChangeLanguageCode(char *lang, const int32_t dstSize, const char *src, const int32_t srcSize) const in ChangeLanguageCode() 215 if (srcSize == (LANGUAGE_MIN_LENGTH + 1)) { // three letter language only support fil and mai in ChangeLanguageCode() 216 if (memcmp(src, "fil", srcSize) == 0) { in ChangeLanguageCode() 219 } else if (memcmp(src, "mai", srcSize) == 0) { in ChangeLanguageCode() 226 } else if (srcSize == LANGUAGE_MIN_LENGTH) { in ChangeLanguageCode() 227 if (memcmp(src, "he", srcSize) == 0) { in ChangeLanguageCode() 230 } else if (memcmp(src, "id", srcSize) == 0) { in ChangeLanguageCode()
|
D | str_util.cpp | 107 std::string::size_type srcSize = src.size(); in Split() local 109 while ((end < srcSize) && (src[end] != sep)) { in Split() 112 if (end >= srcSize) { in Split()
|
/base/hiviewdfx/hilog_lite/frameworks/js/builtin/include/ |
D | hilog_realloc.h | 28 static void *Realloc(void *ptr, size_t size, size_t srcSize);
|
/base/update/updater/services/updater_binary/ |
D | update_image_patch.h | 30 std::string srcSize {}; 55 std::string srcSize {};
|
D | update_image_patch.cpp | 62 ret |= static_cast<uint32_t>(context.GetParam(index++, para.srcSize)); in GetParam() 243 ret |= static_cast<uint32_t>(context.GetParam(index++, para.srcSize)); in GetParam() 268 size_t length = std::stoul(para.srcSize); in CheckHash()
|
/base/security/device_auth/deps_adapter/os_adapter/interfaces/linux/ |
D | hc_file.h | 38 int HcFileWrite(FileHandle file, const void *src, int srcSize);
|
/base/security/device_auth/deps_adapter/os_adapter/interfaces/liteos/ |
D | hc_file.h | 42 int HcFileWrite(FileHandle file, const void *src, int srcSize);
|
/base/update/updater/services/package/pkg_algorithm/ |
D | pkg_algo_lz4.h | 71 …int32_t AdpLz4Compress(const uint8_t *src, uint8_t *dest, uint32_t srcSize, uint32_t dstCapacity) … 73 …int32_t AdpLz4Decompress(const uint8_t *src, uint8_t *dest, uint32_t srcSize, uint32_t dstCapacity…
|
D | pkg_algo_lz4.cpp | 43 uint32_t srcSize, uint32_t dstCapacity) const in AdpLz4Compress() argument 47 static_cast<int32_t>(srcSize), static_cast<int32_t>(dstCapacity)); in AdpLz4Compress() 49 …press_HC(reinterpret_cast<const char *>(src), reinterpret_cast<char *>(dest), srcSize, dstCapacity, in AdpLz4Compress() 53 int32_t PkgAlgorithmLz4::AdpLz4Decompress(const uint8_t *src, uint8_t *dest, uint32_t srcSize, in AdpLz4Decompress() argument 56 …n LZ4_decompress_safe(reinterpret_cast<const char *>(src), reinterpret_cast<char *>(dest), srcSize, in AdpLz4Decompress()
|
/base/global/i18n_lite/interfaces/kits/i18n/include/ |
D | locale_info.h | 193 …hangeLanguageCode(char *lang, const int32_t dstSize, const char *src, const int32_t srcSize) const;
|
/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/ |
D | hks_rkc_rw.c | 106 int32_t FillFieldToBuffer(const void *src, uint32_t srcSize, struct HksBlob *destBlob, uint32_t *de… in FillFieldToBuffer() argument 108 if (src == NULL || srcSize == 0 || CheckBlob(destBlob) != HKS_SUCCESS || destOffset == NULL) { in FillFieldToBuffer() 117 if (destBlob->size - *destOffset < srcSize) { in FillFieldToBuffer() 122 if (memcpy_s(destBlob->data + *destOffset, destBlob->size - *destOffset, src, srcSize) != EOK) { in FillFieldToBuffer() 126 *destOffset += srcSize; in FillFieldToBuffer()
|
/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/include/ |
D | hks_rkc_rw.h | 112 int32_t FillFieldToBuffer(const void *src, uint32_t srcSize, struct HksBlob *destBlob, uint32_t *de…
|
/base/security/huks/services/huks_standard/huks_service/main/core/src/ |
D | hks_storage_lite.c | 73 const uint32_t srcSize, struct HksBlob *mac) in CalcHeaderMac() argument 75 if (srcSize == 0) { in CalcHeaderMac() 79 struct HksBlob srcData = { srcSize, NULL }; in CalcHeaderMac() 86 if (memcpy_s(srcData.data, srcData.size, buf, srcSize) != EOK) { in CalcHeaderMac()
|