/third_party/bounds_checking_function/src/ |
H A D | strcat_s.c | 23 size_t srcLen; in SecDoCat() local 28 SECUREC_CALC_STR_LEN_OPT(strSrc, maxSrcLen, &srcLen); in SecDoCat() 30 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoCat() 39 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoCat() 48 SECUREC_MEMCPY_WARP_OPT(strDest + destLen, strSrc, srcLen + 1); /* Single character length include \0 */ in SecDoCat()
|
H A D | wcscat_s.c | 23 size_t srcLen; in SecDoCatW() local 29 SECUREC_CALC_WSTR_LEN(strSrc, maxCount, &srcLen); in SecDoCatW() 31 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoCatW() 40 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoCatW() 50 SECUREC_MEMCPY_WARP_OPT(strDest + destLen, strSrc, (srcLen + 1) * sizeof(wchar_t)); in SecDoCatW()
|
/third_party/node/deps/icu-small/source/tools/genrb/ |
H A D | rle.h | 42 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode* status); 59 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* status); 65 rleStringToByteArray(uint16_t* src, int32_t srcLen, uint8_t* target, int32_t tgtLen, UErrorCode* status); 70 rleStringToUCharArray(uint16_t* src, int32_t srcLen, uint16_t* target, int32_t tgtLen, UErrorCode* status);
|
/third_party/icu/icu4c/source/tools/genrb/ |
H A D | rle.h | 42 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode* status); 59 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* status); 65 rleStringToByteArray(uint16_t* src, int32_t srcLen, uint8_t* target, int32_t tgtLen, UErrorCode* status); 70 rleStringToUCharArray(uint16_t* src, int32_t srcLen, uint16_t* target, int32_t tgtLen, UErrorCode* status);
|
/third_party/skia/third_party/externals/icu/source/tools/genrb/ |
H A D | rle.h | 42 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode* status); 59 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* status); 65 rleStringToByteArray(uint16_t* src, int32_t srcLen, uint8_t* target, int32_t tgtLen, UErrorCode* status); 70 rleStringToUCharArray(uint16_t* src, int32_t srcLen, uint16_t* target, int32_t tgtLen, UErrorCode* status);
|
/third_party/lzma/C/ |
H A D | LzmaLib.c | 11 Z7_STDAPI LzmaCompress(unsigned char *dest, size_t *destLen, const unsigned char *src, size_t srcLen,
in LzmaCompress() argument 32 return LzmaEncode(dest, destLen, src, srcLen, &props, outProps, outPropsSize, 0,
in LzmaCompress() 37 Z7_STDAPI LzmaUncompress(unsigned char *dest, size_t *destLen, const unsigned char *src, size_t *srcLen,
in LzmaUncompress() argument 41 return LzmaDecode(dest, destLen, src, srcLen, props, (unsigned)propsSize, LZMA_FINISH_ANY, &status, &g_Alloc);
in LzmaUncompress()
|
H A D | Lzma2Dec.h | 50 const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status);
53 const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status);
81 const Byte *src, SizeT *srcLen,
116 SRes Lzma2Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,
|
H A D | Lzma86.h | 71 SRes Lzma86_Encode(Byte *dest, size_t *destLen, const Byte *src, size_t srcLen,
79 srcLen - input data size
87 SRes Lzma86_GetUnpackSize(const Byte *src, SizeT srcLen, UInt64 *unpackSize);
95 srcLen - input data size
98 srcLen - processed input size
107 SRes Lzma86_Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen);
|
H A D | XzDec.c | 195 const Byte *src, SizeT *srcLen, int srcWasFinished,
in XzBcFilterState_Code2() 202 SizeT srcRem = *srcLen;
in XzBcFilterState_Code2() 206 *srcLen = 0;
in XzBcFilterState_Code2() 236 *srcLen += size;
in XzBcFilterState_Code2() 324 static SRes SbState_Code2(void *pp, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,
in SbState_Code2() argument 335 p->srcLen = *srcLen;
in SbState_Code2() 339 *srcLen -= p->srcLen;
in SbState_Code2() 340 // *wasFinished = (*destLen == 0 && *srcLen in SbState_Code2() 193 XzBcFilterState_Code2(void *pp, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, int srcWasFinished, ECoderFinishMode finishMode, ECoderStatus *status) XzBcFilterState_Code2() argument 414 Lzma2State_Code2(void *pp, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, int srcWasFinished, ECoderFinishMode finishMode, ECoderStatus *status) Lzma2State_Code2() argument 580 MixCoder_Code(CMixCoder *p, Byte *dest, SizeT *destLen, int destFinish, const Byte *src, SizeT *srcLen, int srcWasFinished, ECoderFinishMode finishMode) MixCoder_Code() argument 1016 XzUnpacker_Code(CXzUnpacker *p, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, int srcFinished, ECoderFinishMode finishMode, ECoderStatus *status) XzUnpacker_Code() argument 1371 XzUnpacker_CodeFull(CXzUnpacker *p, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, ECoderFinishMode finishMode, ECoderStatus *status) XzUnpacker_CodeFull() argument [all...] |
H A D | LzmaDec.c | 952 SRes LzmaDec_DecodeToDic(CLzmaDec *p, SizeT dicLimit, const Byte *src, SizeT *srcLen,
in LzmaDec_DecodeToDic() argument 955 SizeT inSize = *srcLen;
in LzmaDec_DecodeToDic() 956 (*srcLen) = 0;
in LzmaDec_DecodeToDic() 964 for (; inSize > 0 && p->tempBufSize < RC_INIT_SIZE; (*srcLen)++, inSize--)
in LzmaDec_DecodeToDic() 1055 (*srcLen) += inSize;
in LzmaDec_DecodeToDic() 1070 (*srcLen) += (unsigned)dummyProcessed;
in LzmaDec_DecodeToDic() 1101 (*srcLen) += processed;
in LzmaDec_DecodeToDic() 1138 (*srcLen) += (SizeT)ahead;
in LzmaDec_DecodeToDic() 1150 (*srcLen) += (unsigned)dummyProcessed - p->tempBufSize;
in LzmaDec_DecodeToDic() 1180 (*srcLen) in LzmaDec_DecodeToDic() 1200 LzmaDec_DecodeToBuf(CLzmaDec *p, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status) LzmaDec_DecodeToBuf() argument 1340 LzmaDecode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, const Byte *propData, unsigned propSize, ELzmaFinishMode finishMode, ELzmaStatus *status, ISzAllocPtr alloc) LzmaDecode() argument [all...] |
H A D | LzmaLib.h | 92 srcLen - input data size
103 Z7_STDAPI LzmaCompress(unsigned char *dest, size_t *destLen, const unsigned char *src, size_t srcLen,
121 srcLen - input data size
124 srcLen - processed input size
133 Z7_STDAPI LzmaUncompress(unsigned char *dest, size_t *destLen, const unsigned char *src, SizeT *srcLen,
|
H A D | LzmaDec.h | 103 3) Check that output(srcLen) = compressedSize, if you know real compressedSize.
189 const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status);
206 const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status);
231 SRes LzmaDecode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,
|
/third_party/icu/icu4c/source/test/perf/strsrchperf/ |
H A D | strsrchperf.cpp | 29 src = getBuffer(srcLen, status); in StringSearchPerformanceTest() 33 UBreakIterator* brk = ubrk_open(UBRK_WORD, locale, src, srcLen, &status); in StringSearchPerformanceTest() 68 srch = usearch_open(pttrn, pttrnLen, src, srcLen, locale, NULL, &status); in StringSearchPerformanceTest() 99 StringSearchPerfFunction* func = new StringSearchPerfFunction(ICUForwardSearch, srch, src, srcLen, pttrn, pttrnLen); in Test_ICU_Forward_Search() 104 StringSearchPerfFunction* func = new StringSearchPerfFunction(ICUBackwardSearch, srch, src, srcLen, pttrn, pttrnLen); in Test_ICU_Backward_Search()
|
/third_party/icu/icu4c/source/test/cintltst/ |
H A D | cbiditst.c | 101 static const char* inverseBasic(UBiDi *pBiDi, const char *src, int32_t srcLen, 1424 int32_t srcLen, destLen, runCount, i; in doMisc() local 1458 srcLen = u_unescape("abc ", src, MAXLEN); in doMisc() 1459 ubidi_setPara(bidi, src, srcLen, UBIDI_RTL, NULL, &errorCode); in doMisc() 1470 srcLen = u_unescape("abc def", src, MAXLEN); in doMisc() 1471 ubidi_setPara(bidi, src, srcLen, UBIDI_RTL, NULL, &errorCode); in doMisc() 1482 srcLen = u_unescape("abcdefghi ", src, MAXLEN); in doMisc() 1483 ubidi_setPara(bidi, src, srcLen, UBIDI_RTL, NULL, &errorCode); in doMisc() 1495 srcLen = u_unescape("\\u200eabc def", src, MAXLEN); in doMisc() 1496 ubidi_setPara(bidi, src, srcLen, UBIDI_RT in doMisc() 1711 int32_t srcLen; testFailureRecovery() local 1858 int32_t srcLen, destLen; testMultipleParagraphs() local 4196 int32_t srcLen, destLen, vis1Len, vis2Len, option, i, j, nCases, paras; testReorderRunsOnly() local 4280 int32_t srcLen, destLen, idx; testReorderingMode() local 4384 inverseBasic(UBiDi *pBiDi, const char *srcChars, int32_t srcLen, uint32_t option, UBiDiLevel level, char *result) inverseBasic() argument 4448 int32_t srcLen, processedLen, chunk, len, nPortions; testStreaming() local 4577 int32_t srcLen, destLen, textSrcSize = (int32_t)uprv_strlen(textSrc); testClassOverride() local 4663 int32_t i, srcLen, resLen, idx; checkMaps() local 4847 int32_t proLength, epiLength, srcLen, destLen, tc; testContext() local [all...] |
/third_party/musl/libc-test/src/functional/ |
H A D | iconv_test.c | 85 void CompareIconvResult(char *to, char *from, char *src, size_t srcLen)
in CompareIconvResult() argument 92 param.inputLen = srcLen;
in CompareIconvResult() 116 if (srcLen != BUFFER_SIZE - param.outputLen) {
in CompareIconvResult() 123 for (size_t i = 0; i < srcLen; i += step) {
in CompareIconvResult()
|
/third_party/skia/src/xml/ |
H A D | SkDOMParser.cpp | 10 char* SkDOMParser::dupstr(SkArenaAlloc* chunk, const char src[], size_t srcLen) { in dupstr() argument 12 char* dst = chunk->makeArrayDefault<char>(srcLen + 1); in dupstr() 13 memcpy(dst, src, srcLen); in dupstr() 14 dst[srcLen] = '\0'; in dupstr()
|
/third_party/skia/src/pdf/ |
H A D | SkPDFType1Font.cpp | 137 size_t srcLen = srcStream ? srcStream->getLength() : 0; in convert_type1_font_stream() local 138 SkASSERT(srcLen); in convert_type1_font_stream() 139 if (!srcLen) { in convert_type1_font_stream() 144 SkAutoTMalloc<uint8_t> sourceBuffer(SkToInt(srcLen + 1)); in convert_type1_font_stream() 145 (void)srcStream->read(sourceBuffer.get(), srcLen); in convert_type1_font_stream() 146 sourceBuffer[SkToInt(srcLen)] = 0; in convert_type1_font_stream() 149 if (parsePFB(src, srcLen, headerLen, dataLen, trailerLen)) { in convert_type1_font_stream() 153 SkASSERT(length + (2 * kPFBSectionHeaderLength) <= srcLen); in convert_type1_font_stream() 178 if (!parsePFA((const char*)src, srcLen, headerLen, &hexDataLen, dataLen, in convert_type1_font_stream()
|
/test/xts/device_attest_lite/services/core/mini/adapter/ |
H A D | attest_adapter_network_config.c | 31 static int32_t CopyNVData(char *dst, int32_t dstLen, unsigned char *src, int32_t srcLen) in CopyNVData() argument 37 int32_t dataLen = (dstLen < srcLen) ? dstLen : srcLen; in CopyNVData()
|
/third_party/icu/icu4c/source/test/intltest/ |
H A D | testidna.cpp | 815 int32_t srcLen = u_strlen(src); //subtract null in testCompare() local 817 testCompare(src,srcLen,src,srcLen,testName, func, true); in testCompare() 820 testCompare(src,srcLen,buf,u_strlen(buf),testName, func,true); in testCompare() 824 testCompare(src,srcLen,uni1.getBuffer(),uni1.length()-1,testName, func,false); in testCompare() 826 testCompare(src,srcLen,uni0.getBuffer(),uni0.length()-1,testName, func,false); in testCompare() 830 testCompare(src,srcLen,ascii1.getBuffer(),ascii1.length()-1,testName, func,false); in testCompare() 832 testCompare(src,srcLen,ascii0.getBuffer(),ascii0.length()-1,testName, func,false); in testCompare() 889 int32_t srcLen = u_strlen(start); 890 labelLen = getNextSeperator(start,srcLen, 1008 int32_t srcLen = u_strlen(src); testChaining() local 1214 int32_t srcLen = u_strlen(src); //subtract null testRootLabelSeparator() local 1436 testCompareReferenceImpl(const UChar* src, int32_t srcLen) testCompareReferenceImpl() argument 1541 int32_t srcLen = 0; TestCompareReferenceImpl() local [all...] |
/kernel/liteos_a/net/telnet/src/ |
H A D | telnet_loop.c | 110 STATIC UINT8 *ReadFilter(const UINT8 *src, UINT32 srcLen, UINT32 *dstLen) in ReadFilter() argument 114 UINT32 left = srcLen; in ReadFilter() 176 * : srcLen --- data length. 179 STATIC ssize_t WriteToFd(INT32 fd, const CHAR *src, size_t srcLen) in WriteToFd() argument 184 sizeLeft = srcLen; in WriteToFd() 189 if (sizeLeft == srcLen) { in WriteToFd() 203 return (ssize_t)(srcLen - sizeLeft); in WriteToFd()
|
/test/xts/device_attest/services/core/utils/ |
H A D | attest_utils.c | 187 int Sha256ValueToAscii(const unsigned char *src, int srcLen, char *dest, int destLen) in Sha256ValueToAscii() argument 189 if (src == NULL || srcLen <= 0 || dest == NULL || destLen <= 0) { in Sha256ValueToAscii() 199 mbedtls_sha256_update_ret(&context, src, srcLen); in Sha256ValueToAscii() 215 int Sha256Value(const unsigned char *src, int srcLen, char *dest, int destLen) in Sha256Value() argument 217 if (src == NULL || srcLen <= 0 || dest == NULL || destLen <= 0) { in Sha256Value() 224 int32_t ret = Sha256ValueToAscii(src, srcLen, hash, HASH_LENGTH); in Sha256Value()
|
/test/xts/device_attest_lite/services/core/utils/ |
H A D | attest_utils.c | 190 int Sha256ValueToAscii(const unsigned char *src, int srcLen, unsigned char *dest, int destLen) in Sha256ValueToAscii() argument 192 if (src == NULL || srcLen <= 0 || dest == NULL || destLen <= 0) { in Sha256ValueToAscii() 202 mbedtls_sha256_update_ret(&context, src, srcLen); in Sha256ValueToAscii() 218 int Sha256Value(const unsigned char *src, int srcLen, char *dest, int destLen) in Sha256Value() argument 220 if (src == NULL || srcLen <= 0 || dest == NULL || destLen <= 0) { in Sha256Value() 226 int32_t ret = Sha256ValueToAscii(src, srcLen, hash, HASH_LENGTH); in Sha256Value()
|
/third_party/icu/icu4c/source/test/perf/normperf/ |
H A D | normperf.cpp | 77 void NormalizerPerformanceTest::normalizeInput(ULine* dest,const UChar* src ,int32_t srcLen,UNormalizationMode mode, int32_t options){ in normalizeInput() argument 82 reqLen=unorm_normalize(src,srcLen,mode, options,NULL,0,&status); in normalizeInput() 86 reqLen= unorm_normalize(src,srcLen,mode, options,dest->name,reqLen+1,&status); in normalizeInput() 94 UChar* NormalizerPerformanceTest::normalizeInput(int32_t& len, const UChar* src ,int32_t srcLen,UNormalizationMode mode, int32_t options){ in normalizeInput() argument 100 reqLen=unorm_normalize(src,srcLen,mode, options,NULL,0,&status); in normalizeInput() 104 reqLen= unorm_normalize(src,srcLen,mode, options,dest,reqLen+1,&status); in normalizeInput() 158 int32_t srcLen = 0; in NormalizerPerformanceTest() local 159 const UChar* src = getBuffer(srcLen,status); in NormalizerPerformanceTest() 168 NFDBuffer = normalizeInput(NFDBufferLen,src,srcLen,UNORM_NFD, options); in NormalizerPerformanceTest() 169 NFCBuffer = normalizeInput(NFCBufferLen,src,srcLen,UNORM_NF in NormalizerPerformanceTest() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/string/string_gtest/ |
H A D | string_strlen_test.cpp | 22 int srcLen = sizeof(srcChar) / sizeof(srcChar[0]) - 1; in HWTEST_F() local 24 EXPECT_EQ(STR_SIZE_TWO, srcLen); in HWTEST_F()
|
/test/xts/device_attest_lite/services/core/include/utils/ |
H A D | attest_utils.h | 56 int Sha256ValueToAscii(const unsigned char *src, int srcLen, unsigned char *dest, int destLen); 58 int Sha256Value(const unsigned char *src, int srcLen, char *dest, int destLen);
|