Home
last modified time | relevance | path

Searched refs:srcSize (Results 1 – 18 of 18) sorted by relevance

/base/hiviewdfx/hilog_lite/frameworks/js/builtin/src/
Dhilog_realloc.cpp21 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/
Dbyte_buffer.h54 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/
Dhc_file_posix.c148 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()
Dhc_file.c83 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/
Dhc_file.c136 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/
Dlocale_info.cpp210 …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()
Dstr_util.cpp107 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/
Dhilog_realloc.h28 static void *Realloc(void *ptr, size_t size, size_t srcSize);
/base/update/updater/services/updater_binary/
Dupdate_image_patch.h30 std::string srcSize {};
55 std::string srcSize {};
Dupdate_image_patch.cpp62 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/
Dhc_file.h38 int HcFileWrite(FileHandle file, const void *src, int srcSize);
/base/security/device_auth/deps_adapter/os_adapter/interfaces/liteos/
Dhc_file.h42 int HcFileWrite(FileHandle file, const void *src, int srcSize);
/base/update/updater/services/package/pkg_algorithm/
Dpkg_algo_lz4.h71 …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…
Dpkg_algo_lz4.cpp43 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/
Dlocale_info.h193 …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/
Dhks_rkc_rw.c106 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/
Dhks_rkc_rw.h112 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/
Dhks_storage_lite.c73 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()