Home
last modified time | relevance | path

Searched refs:destLen (Results 1 – 25 of 77) sorted by relevance

1234

/third_party/icu/icu4c/source/test/cintltst/
Didnatest.c79 int32_t destLen = 0; in testAPI() local
95 destLen = func(src,-1,NULL,0,options, &parseError , &status); in testAPI()
98 if(destLen+1 < MAX_DEST_SIZE){ in testAPI()
100 destLen = func(src,-1,dest,destLen+1,options, &parseError, &status); in testAPI()
102 …IDNA_STD3_ASCII_RULES_ERROR&& (doCompare==TRUE) && u_strCaseCompare(dest,destLen, expected,expecte… in testAPI()
117 destLen = func(src,-1,NULL,0,options | UIDNA_ALLOW_UNASSIGNED, &parseError, &status); in testAPI()
120 if(destLen+1 < MAX_DEST_SIZE){ in testAPI()
122destLen = func(src,-1,dest,destLen+1,options | UIDNA_ALLOW_UNASSIGNED, &parseError, &status); in testAPI()
124 …if(U_SUCCESS(status) && (doCompare==TRUE) && u_strCaseCompare(dest,destLen, expected,expectedLen,0… in testAPI()
141 destLen = func(tSrc, tSrcLen, NULL,0,options, &parseError, &status); in testAPI()
[all …]
Dspreptst.c303 destLen = 0; in unescapeData() local
309 u_strToUTF8(dest, destCapacity, &destLen, b1, b1Len, status); in unescapeData()
311 return destLen; in unescapeData()
331 int32_t destLen = 0; in Test_nfs4_cis_prep() local
333destLen = nfs4_cis_prepare(src , (int32_t)strlen(src), dest, destLen, &parseError, &status); in Test_nfs4_cis_prep()
336 dest = (char*) malloc(++destLen); in Test_nfs4_cis_prep()
337destLen = nfs4_cis_prepare( src , (int32_t)strlen(src), dest, destLen, &parseError, &status); in Test_nfs4_cis_prep()
449 int32_t destLen=0; in Test_nfs4_mixed_prep() local
458 destLen = nfs4_mixed_prepare(src, srcLen, NULL, 0, &parseError, &status); in Test_nfs4_mixed_prep()
461 dest = (char*)malloc(++destLen); in Test_nfs4_mixed_prep()
[all …]
/third_party/bounds_checking_function/src/
Dstrcat_s.c23 size_t destLen; in SecDoCat() local
26 SECUREC_CALC_STR_LEN(strDest, destMax, &destLen); in SecDoCat()
28 maxSrcLen = destMax - destLen; in SecDoCat()
31 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoCat()
33 if (strDest + destLen <= strSrc && destLen == destMax) { in SecDoCat()
40 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoCat()
42 if (destLen == destMax) { in SecDoCat()
49 …SECUREC_MEMCPY_WARP_OPT(strDest + destLen, strSrc, srcLen + 1); /* Single character length includ… in SecDoCat()
Dwcscat_s.c23 size_t destLen; in SecDoCatW() local
28 SECUREC_CALC_WSTR_LEN(strDest, destMax, &destLen); in SecDoCatW()
29 maxCount = destMax - destLen; in SecDoCatW()
32 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoCatW()
34 if (strDest + destLen <= strSrc && destLen == destMax) { in SecDoCatW()
41 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoCatW()
43 if (destLen == destMax) { in SecDoCatW()
51 SECUREC_MEMCPY_WARP_OPT(strDest + destLen, strSrc, (srcLen + 1) * sizeof(wchar_t)); in SecDoCatW()
Dstrncat_s.c23 size_t destLen; in SecDoCatLimit() local
25 SECUREC_CALC_STR_LEN(strDest, destMax, &destLen); in SecDoCatLimit()
32 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoCatLimit()
34 if (strDest + destLen <= strSrc && destLen == destMax) { in SecDoCatLimit()
41 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoCatLimit()
43 if (destLen == destMax) { in SecDoCatLimit()
50 SECUREC_MEMCPY_WARP_OPT(strDest + destLen, strSrc, srcLen); /* No terminator */ in SecDoCatLimit()
51 *(strDest + destLen + srcLen) = '\0'; in SecDoCatLimit()
Dwcsncat_s.c24 size_t destLen; in SecDoCatLimitW() local
26 SECUREC_CALC_WSTR_LEN(strDest, destMax, &destLen); in SecDoCatLimitW()
29 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoCatLimitW()
31 if (strDest + destLen <= strSrc && destLen == destMax) { in SecDoCatLimitW()
38 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoCatLimitW()
40 if (destLen == destMax) { in SecDoCatLimitW()
47 … SECUREC_MEMCPY_WARP_OPT(strDest + destLen, strSrc, srcLen * sizeof(wchar_t)); /* no terminator */ in SecDoCatLimitW()
48 *(strDest + destLen + srcLen) = L'\0'; in SecDoCatLimitW()
/third_party/mindspore/third_party/securec/src/
Dwcscat_s.c26 size_t destLen; in SecDoWcscat() local
31 SECUREC_CALC_WSTR_LEN(strDest, destMax, &destLen); in SecDoWcscat()
32 maxCount = destMax - destLen; in SecDoWcscat()
35 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoWcscat()
37 if (strDest + destLen <= strSrc && destLen == destMax) { in SecDoWcscat()
44 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoWcscat()
46 if (destLen == destMax) { in SecDoWcscat()
53 …SecDoMemcpy(strDest + destLen, strSrc, (srcLen + 1) * sizeof(wchar_t)); /* single character length… in SecDoWcscat()
Dwcsncat_s.c26 size_t destLen; in SecDoWcsncat() local
30 SECUREC_CALC_WSTR_LEN(strDest, destMax, &destLen); in SecDoWcsncat()
33 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoWcsncat()
35 if (strDest + destLen <= strSrc && destLen == destMax) { in SecDoWcsncat()
42 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoWcsncat()
44 if (destLen == destMax) { in SecDoWcsncat()
51 SecDoMemcpy(strDest + destLen, strSrc, srcLen * sizeof(wchar_t)); /* no terminator */ in SecDoWcsncat()
52 *(strDest + destLen + srcLen) = L'\0'; in SecDoWcsncat()
Dstrcat_s.c27 size_t destLen = SecStrMinLen(strDest, destMax); in SecDoStrcat() local
29 size_t srcLen = SecStrMinLenOpt(strSrc, destMax - destLen); in SecDoStrcat()
31 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoStrcat()
33 if (strDest + destLen <= strSrc && destLen == destMax) { in SecDoStrcat()
40 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoStrcat()
42 if (destLen == destMax) { in SecDoStrcat()
49 SecDoMemcpy(strDest + destLen, strSrc, srcLen + 1); /* single character length include \0 */ in SecDoStrcat()
Dstrncat_s.c27 size_t destLen = SecStrMinLen(strDest, destMax); in SecDoStrncat() local
33 if (SECUREC_CAT_STRING_IS_OVERLAP(strDest, destLen, strSrc, srcLen)) { in SecDoStrncat()
35 if (strDest + destLen <= strSrc && destLen == destMax) { in SecDoStrncat()
42 if (srcLen + destLen >= destMax || strDest == strSrc) { in SecDoStrncat()
44 if (destLen == destMax) { in SecDoStrncat()
51 SecDoMemcpy(strDest + destLen, strSrc, srcLen); /* no terminator */ in SecDoStrncat()
52 *(strDest + destLen + srcLen) = '\0'; in SecDoStrncat()
/third_party/skia/third_party/externals/brotli/java/org/brotli/dec/
DBrotliInputStream.java126 public int read(byte[] destBuffer, int destOffset, int destLen) throws IOException { in read() argument
129 } else if (destLen < 0) { in read()
130 throw new IllegalArgumentException("Bad length: " + destLen); in read()
131 } else if (destOffset + destLen > destBuffer.length) { in read()
133 "Buffer overflow: " + (destOffset + destLen) + " > " + destBuffer.length); in read()
134 } else if (destLen == 0) { in read()
139 copyLen = Math.min(copyLen, destLen); in read()
143 destLen -= copyLen; in read()
144 if (destLen == 0) { in read()
151 state.outputLength = destLen; in read()
/third_party/node/deps/zlib/
Duncompr.c27 int ZEXPORT uncompress2 (dest, destLen, source, sourceLen) in uncompress2() argument
29 uLongf *destLen;
40 if (*destLen) {
41 left = *destLen;
42 *destLen = 0;
75 *destLen = stream.total_out;
86 int ZEXPORT uncompress (dest, destLen, source, sourceLen) in uncompress() argument
88 uLongf *destLen;
92 return uncompress2(dest, destLen, source, &sourceLen);
Dcompress.c22 int ZEXPORT compress2 (dest, destLen, source, sourceLen, level) in compress2() argument
24 uLongf *destLen;
34 left = *destLen;
35 *destLen = 0;
61 *destLen = stream.total_out;
68 int ZEXPORT compress (dest, destLen, source, sourceLen) in compress() argument
70 uLongf *destLen;
74 return compress2(dest, destLen, source, sourceLen, Z_DEFAULT_COMPRESSION);
/third_party/zlib/
Duncompr.c27 int ZEXPORT uncompress2 (dest, destLen, source, sourceLen) in uncompress2() argument
29 uLongf *destLen;
40 if (*destLen) {
41 left = *destLen;
42 *destLen = 0;
75 *destLen = stream.total_out;
86 int ZEXPORT uncompress (dest, destLen, source, sourceLen) in uncompress() argument
88 uLongf *destLen;
92 return uncompress2(dest, destLen, source, &sourceLen);
Dcompress.c22 int ZEXPORT compress2 (dest, destLen, source, sourceLen, level) in compress2() argument
24 uLongf *destLen;
34 left = *destLen;
35 *destLen = 0;
61 *destLen = stream.total_out;
68 int ZEXPORT compress (dest, destLen, source, sourceLen) in compress() argument
70 uLongf *destLen;
74 return compress2(dest, destLen, source, sourceLen, Z_DEFAULT_COMPRESSION);
/third_party/boost/libs/beast/test/extern/zlib-1.2.11/
Duncompr.c27 int ZEXPORT uncompress2 (dest, destLen, source, sourceLen) in uncompress2() argument
29 uLongf *destLen;
40 if (*destLen) {
41 left = *destLen;
42 *destLen = 0;
75 *destLen = stream.total_out;
86 int ZEXPORT uncompress (dest, destLen, source, sourceLen) in uncompress() argument
88 uLongf *destLen;
92 return uncompress2(dest, destLen, source, &sourceLen);
Dcompress.c22 int ZEXPORT compress2 (dest, destLen, source, sourceLen, level) in compress2() argument
24 uLongf *destLen;
34 left = *destLen;
35 *destLen = 0;
61 *destLen = stream.total_out;
68 int ZEXPORT compress (dest, destLen, source, sourceLen) in compress() argument
70 uLongf *destLen;
74 return compress2(dest, destLen, source, sourceLen, Z_DEFAULT_COMPRESSION);
/third_party/skia/third_party/externals/zlib/
Duncompr.c27 int ZEXPORT uncompress2 (dest, destLen, source, sourceLen) in uncompress2() argument
29 uLongf *destLen;
40 if (*destLen) {
41 left = *destLen;
42 *destLen = 0;
75 *destLen = stream.total_out;
86 int ZEXPORT uncompress (dest, destLen, source, sourceLen) in uncompress() argument
88 uLongf *destLen;
92 return uncompress2(dest, destLen, source, &sourceLen);
Dcompress.c22 int ZEXPORT compress2 (dest, destLen, source, sourceLen, level) in compress2() argument
24 uLongf *destLen;
34 left = *destLen;
35 *destLen = 0;
61 *destLen = stream.total_out;
68 int ZEXPORT compress (dest, destLen, source, sourceLen) in compress() argument
70 uLongf *destLen;
74 return compress2(dest, destLen, source, sourceLen, Z_DEFAULT_COMPRESSION);
/third_party/boost/tools/boost_install/test/iostreams/zlib-1.2.11/
Duncompr.c27 int ZEXPORT uncompress2 (dest, destLen, source, sourceLen) in uncompress2() argument
29 uLongf *destLen;
40 if (*destLen) {
41 left = *destLen;
42 *destLen = 0;
75 *destLen = stream.total_out;
86 int ZEXPORT uncompress (dest, destLen, source, sourceLen) in uncompress() argument
88 uLongf *destLen;
92 return uncompress2(dest, destLen, source, &sourceLen);
Dcompress.c22 int ZEXPORT compress2 (dest, destLen, source, sourceLen, level) in compress2() argument
24 uLongf *destLen;
34 left = *destLen;
35 *destLen = 0;
61 *destLen = stream.total_out;
68 int ZEXPORT compress (dest, destLen, source, sourceLen) in compress() argument
70 uLongf *destLen;
74 return compress2(dest, destLen, source, sourceLen, Z_DEFAULT_COMPRESSION);
/third_party/flutter/skia/third_party/externals/zlib/
Duncompr.c27 int ZEXPORT uncompress2 (dest, destLen, source, sourceLen) in uncompress2() argument
29 uLongf *destLen;
40 if (*destLen) {
41 left = *destLen;
42 *destLen = 0;
75 *destLen = stream.total_out;
86 int ZEXPORT uncompress (dest, destLen, source, sourceLen) in uncompress() argument
88 uLongf *destLen;
92 return uncompress2(dest, destLen, source, &sourceLen);
Dcompress.c22 int ZEXPORT compress2 (dest, destLen, source, sourceLen, level) in compress2() argument
24 uLongf *destLen;
34 left = *destLen;
35 *destLen = 0;
61 *destLen = stream.total_out;
68 int ZEXPORT compress (dest, destLen, source, sourceLen) in compress() argument
70 uLongf *destLen;
74 return compress2(dest, destLen, source, sourceLen, Z_DEFAULT_COMPRESSION);
/third_party/libwebsockets/win32port/zlib/
Dcompress.c22 int ZEXPORT compress2 (dest, destLen, source, sourceLen, level) in compress2() argument
24 uLongf *destLen;
39 stream.avail_out = (uInt)*destLen;
40 if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR;
54 *destLen = stream.total_out;
62 int ZEXPORT compress (dest, destLen, source, sourceLen) in compress() argument
64 uLongf *destLen;
68 return compress2(dest, destLen, source, sourceLen, Z_DEFAULT_COMPRESSION);
/third_party/skia/third_party/externals/brotli/csharp/org/brotli/dec/
DBrotliInputStream.cs141 public override int Read(byte[] destBuffer, int destOffset, int destLen) in Read() argument
147 else if (destLen < 0) in Read()
149 throw new System.ArgumentException("Bad length: " + destLen); in Read()
151 else if (destOffset + destLen > destBuffer.Length) in Read()
153 …throw new System.ArgumentException("Buffer overflow: " + (destOffset + destLen) + " > " + destBuff… in Read()
155 else if (destLen == 0) in Read()
162 copyLen = System.Math.Min(copyLen, destLen); in Read()
166 destLen -= copyLen; in Read()
167 if (destLen == 0) in Read()
176 state.outputLength = destLen; in Read()

1234